# CVE-2026-126301: NLTK from 3.6 before 3.10.4 Quadratic CPU Exhaustion via LegalitySyllableTokenizer.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.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-13T09:36:25.223Z
- Modified: 2026-11-17T19:17:50.157Z
- Also known as: GHSA-gpwc-27cw-rh9r
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

NLTK from 3.6 before 3.10.4 contains an algorithmic complexity vulnerability in LegalitySyllableTokenizer.tokenize that allows remote attackers to exhaust CPU by supplying long all-vowel tokens. Attackers can submit a token such as a long run of vowels, causing the unguarded onset reversal loop to perform quadratic work and deny service to syllabification components.

(As written by CVE List.)

## Affected

- nltk nltk: from 3.6 before 3.10.4 (not affected: 3.10.4)
- nltk (PyPI): from 3.6 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-gpwc-27cw-rh9r> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nltk-from-3.6-before-3.10.4-quadratic-cpu-exhaustion-via-legalitysyllabletokenizer-tokenize> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126301> (advisory)
- <https://github.com/nltk/nltk/pull/3895> (web)
- <https://github.com/nltk/nltk/commit/78781ba4575d536fb1540897f27baca0fb40617c> (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-126301](https://www.cve.org/CVERecord?id=CVE-2026-126301), CVE Terms of Use, modified 2026-11-17
- GitHub Advisory Database: [GHSA-gpwc-27cw-rh9r](https://github.com/advisories/GHSA-gpwc-27cw-rh9r), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-126301](https://nvd.nist.gov/vuln/detail/CVE-2026-126301), Public domain, modified 2026-11-17

---

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