# CVE-2026-126298: NLTK before 3.10.4 Quadratic CPU Denial of Service via Tree.chomsky_normal_form

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-11-13T09:36:27.213Z
- Modified: 2026-11-14T00:15:03.209Z
- Also known as: GHSA-r53h-rw34-8h97
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- nltk nltk: before 3.10.4 (not affected: 3.10.4)
- nltk (PyPI): before 3.10.4

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-r53h-rw34-8h97> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nltk-before-3.10.4-quadratic-cpu-denial-of-service-via-tree-chomsky-normal-form> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126298> (advisory)
- <https://github.com/nltk/nltk/pull/3909> (web)
- <https://github.com/nltk/nltk/commit/457ebe349f8dd8080224f76a64aff806dd437057> (web)
- <https://github.com/nltk/nltk/commit/677857dcafd84e4591865d976b562a27dfde566e> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/v3.10.4> (web)

## Sources

- CVE List: [CVE-2026-126298](https://www.cve.org/CVERecord?id=CVE-2026-126298), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-r53h-rw34-8h97](https://github.com/advisories/GHSA-r53h-rw34-8h97), CC-BY-4.0, modified 2026-11-14
- NVD: [CVE-2026-126298](https://nvd.nist.gov/vuln/detail/CVE-2026-126298), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126298 · Whole record: https://cve.day/CVE-2026-126298.json · Rebuilt by cve.day 2026-11-25T22:59:50.629Z
