CVE-2026-129229 NLTK: Compile-time regex DoS in NLTK search/tokenizer sinks: quadratic regex-engine compile bypasses the match-only timeout
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.0 until 3.10.4, TokenSearcher.findall and Text.findall accept caller-controlled regular expressions with an unbounded number of capturing groups throughout the affected range. Starting in 3.10.3, nltk.redos.compile and RegexpTokenizer expose the same compile-time vector. The third-party regex engine compiles group-dense patterns with roughly quadratic cost before the match-time timeout begins, allowing a small unauthenticated request to exhaust CPU and deny service. This issue is fixed in version 3.10.4.
Upgrade path
7 packages: 1 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/nltk(Debian 14) | = 3.9.1-2; = 3.9.2-1; = 3.9.3-1; = 3.10.0-1 +3 more | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| pypi nltk(PyPI) | = 3.10.0; = 3.10.1; = 3.10.2; = 3.10.3 +2 more | 3.10.4 | Fixed |
| nltk | = >= 3.10.0, < 3.10.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi nltk(PyPI) | >= 3.10.0, <= 3.10.3 | No fix listed |
| pypi nltk(PyPI) | >= 3.10.0, < 3.10.4 | 3.10.4 |
| pypi nltk(PyPI) | = 3.10.0 | No fix listed |
| pypi nltk(PyPI) | = 3.10.1 | No fix listed |
| pypi nltk(PyPI) | = 3.10.2 | No fix listed |
| pypi nltk(PyPI) | = 3.10.3 | No fix listed |
| nltk | = >= 3.10.0, < 3.10.4 | No fix listed |
| debian/nltk(Debian:14) | All versions | No fix listed |
| debian/nltk(Debian:14) | = 3.10.0-1 | No fix listed |
| debian/nltk(Debian:14) | = 3.10.1-1 | No fix listed |
| debian/nltk(Debian:14) | = 3.10.3-1 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.1-2 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.2-1 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.3-1 | No fix listed |
| ubuntu/nltk(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/nltk/nltk/security/advisories/GHSA-32p6-cwhc-8r78 exploit vendor-advisory
- https://github.com/nltk/nltk/pull/3895 patch
- https://github.com/nltk/nltk/commit/002bcf714ef8cb8baf94436f4be73e5516914412 patch
- https://github.com/nltk/nltk/releases/tag/v3.10.4
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-130427 third-party-advisory
- Debian Security Tracker CVE-2026-129229 vendor-advisory
- bugs.debian.org issue-tracking
- Ubuntu CVE tracker vendor-advisory
- www.cve.org