- Home
- Vulnerabilities
- CVE-2026-126300
CVE-2026-126300
NLTK from 3.2.5 before 3.10.4 CPU Exhaustion via TreebankWordTokenizer.span_tokenize
Medium
40/100
Summary
NLTK from 3.2.5 before 3.10.4 contains an algorithmic complexity vulnerability in TreebankWordTokenizer.span_tokenize that allows remote attackers to cause quadratic CPU consumption through repeated list.pop(0) calls. Attackers can submit long runs of double-quote characters to services span-tokenizing untrusted text, exhausting a CPU core and degrading availability.
Affected products and versions
Nltk (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| Nltk | from 3.2.5 (included) to 3.10.4 (excluded) |
— | CNA (vendor or assigner) |
Pypi (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| nltk | from 3.2.5 (included) to 3.10.4 (excluded) |
3.10.4 |
GitHub Advisory |
Fix
Upgrade — PyPI/nltk 3.10.4official source
Source : GitHub Advisory
Workaround
No workaround provided.
Check whether you are affected
Exploit reported by sources
These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.
Timeline
- — CVE published (cve)
CERT-FR advisories
- GHSA-ffr9-mgrr-wcvr — NLTK: Quadratic CPU exhaustion in TreebankWordTokenizer.span_tokenize via list.pop(0) in quote-restore loop 13 Nov 2026
References
- https://github.com/nltk/nltk/security/advisories/GHSA-ffr9-mgrr-wcvrexploit
- https://www.vulncheck.com/advisories/nltk-from-3.2.5-before-3.10.4-cpu-exhaustion-via-treebankwordtokenizer-span-tokenizethird-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-126300ADVISORY
- https://github.com/nltk/nltk/pull/3895WEB
- https://github.com/nltk/nltk/commit/e20c40e26ec9306de885703f6e53250695f1f49bWEB
- https://github.com/nltk/nltkPACKAGE
- https://github.com/nltk/nltk/releases/tag/v3.10.4WEB
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- CNA (vendor or assigner)
- CVSS score
- NVD
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L(CVSS 3.1, NVD)- Weakness
- CWE-407 · Autre (CWE-407)