# CVE-2026-126300: NLTK from 3.2.5 before 3.10.4 CPU Exhaustion via TreebankWordTokenizer.span_tokenize

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-13T09:36:25.918Z
- Modified: 2026-11-18T16:18:07.703Z
- Also known as: GHSA-ffr9-mgrr-wcvr
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-ffr9-mgrr-wcvr> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nltk-from-3.2.5-before-3.10.4-cpu-exhaustion-via-treebankwordtokenizer-span-tokenize> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126300> (advisory)
- <https://github.com/nltk/nltk/pull/3895> (web)
- <https://github.com/nltk/nltk/commit/e20c40e26ec9306de885703f6e53250695f1f49b> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/v3.10.4> (web)

## Sources

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

---

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