- Home
- Vulnerabilities
- CVE-2026-126298
CVE-2026-126298
NLTK before 3.10.4 Quadratic CPU Denial of Service via Tree.chomsky_normal_form
Medium
45/100
Summary
NLTK before 3.10.4 contains a denial of service vulnerability in Tree.chomsky_normal_form that allows remote attackers to exhaust CPU through quadratic-time right-factor binarization using list.pop(0). Attackers can supply a wide flat treebank tree parsed by Tree.fromstring to force tens of seconds of single-threaded CPU consumption, blocking the processing thread.
Affected products and versions
Nltk (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| Nltk | before 3.10.4 (excluded) |
— | CNA (vendor or assigner) |
Pypi (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| nltk | before 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
No verification method provided.
Timeline
- — CVE published (cve)
CERT-FR advisories
- GHSA-r53h-rw34-8h97 — NLTK: Quadratic-time CPU denial of service in Tree.chomsky_normal_form right-factor binarization via list.pop(0) 14 Nov 2026
References
- https://github.com/nltk/nltk/security/advisories/GHSA-r53h-rw34-8h97vendor-advisory
- https://www.vulncheck.com/advisories/nltk-before-3.10.4-quadratic-cpu-denial-of-service-via-tree-chomsky-normal-formthird-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-126298ADVISORY
- https://github.com/nltk/nltk/pull/3909WEB
- https://github.com/nltk/nltk/commit/457ebe349f8dd8080224f76a64aff806dd437057WEB
- https://github.com/nltk/nltk/commit/677857dcafd84e4591865d976b562a27dfde566eWEB
- 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:H(CVSS 3.1, NVD)- Weakness
- CWE-400 · Autre (CWE-400)