CVE-2026-126301 NLTK from 3.6 before 3.10.4 Quadratic CPU Exhaustion via LegalitySyllableTokenizer.tokenize
MediumCVSS 6.9
EPSS 0.57%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
NLTK from 3.6 before 3.10.4 contains an algorithmic complexity vulnerability in LegalitySyllableTokenizer.tokenize that allows remote attackers to exhaust CPU by supplying long all-vowel tokens. Attackers can submit a token such as a long run of vowels, causing the unguarded onset reversal loop to perform quadratic work and deny service to syllabification components.
Upgrade path
3 packages: 2 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux python-nltk(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| pypi nltk | >= 3.6, < 3.10.4 | 3.10.4 | Fixed |
| pypi nltk(PyPI) | = 3.6; = 3.6.1; = 3.6.2; = 3.6.3 +19 more | 3.10.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi nltk(PyPI) | >= 3.6, <= 3.10.3 | No fix listed |
| pypi nltk(PyPI) | >= 3.6, < 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 |
| pypi nltk(PyPI) | = 3.6 | No fix listed |
| pypi nltk(PyPI) | = 3.6.1 | No fix listed |
| pypi nltk(PyPI) | = 3.6.2 | No fix listed |
| pypi nltk(PyPI) | = 3.6.3 | No fix listed |
| pypi nltk(PyPI) | = 3.6.4 | No fix listed |
| pypi nltk(PyPI) | = 3.6.5 | No fix listed |
| pypi nltk(PyPI) | = 3.6.6 | No fix listed |
| pypi nltk(PyPI) | = 3.6.7 | No fix listed |
| pypi nltk(PyPI) | = 3.7 | No fix listed |
| pypi nltk(PyPI) | = 3.8 | No fix listed |
| pypi nltk(PyPI) | = 3.8.1 | No fix listed |
| pypi nltk(PyPI) | = 3.9 | No fix listed |
| pypi nltk(PyPI) | = 3.9.1 | No fix listed |
| pypi nltk(PyPI) | = 3.9.2 | No fix listed |
| pypi nltk(PyPI) | = 3.9.3 | No fix listed |
| pypi nltk(PyPI) | = 3.9.4 | No fix listed |
| pypi nltk(PyPI) | = 3.9b1 | No fix listed |
| pypi nltk | >= 3.6, < 3.10.4 | 3.10.4 |
| azure linux python-nltk(Azure Linux:4.0) | All versions | No fix listed |
References
- GitHub Security Advisory (GHSA-gpwc-27cw-rh9r) exploit vendor-advisory
- VulnCheck Advisory: NLTK from 3.6 before 3.10.4 Quadratic CPU Exhaustion via LegalitySyllableTokenizer.tokenize third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com product
- github.com
- github.com
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-125220 third-party-advisory