CVE-2026-126298
published high CVSS 4.0 · 8.7NLTK before 3.10.4 Quadratic CPU Denial of Service via Tree.chomsky_normal_form
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nltk | — | nltk0 to < 3.10.4 (affected · semver) · 3.10.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nltk | nltk | 0 to < 3.10.4 (affected · semver)3.10.4 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-400 Uncontrolled Resource Consumption
References
2- GitHub Security Advisory (GHSA-r53h-rw34-8h97) https://github.com/nltk/nltk/security/advisories/GHSA-r53h-rw34-8h97
- VulnCheck Advisory: NLTK before 3.10.4 Quadratic CPU Denial of Service via Tree.chomsky_normal_form https://www.vulncheck.com/advisories/nltk-before-3.10.4-quadratic-cpu-denial-of-service-via-tree-chomsky-normal-form
Provider assertions
2VulnCheck · cna
NLTK before 3.10.4 Quadratic CPU Denial of Service via Tree.chomsky_normal_form
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b76fcc5d40726b8270e992ab8c3ca6ded71fb0180293bb5df8499074c2b5b479
- Ingested
- 13 Nov 2026, 22:37:54 UTC
- Source record
- Official CVE record