# CVE-2026-129229: NLTK: Compile-time regex DoS in NLTK search/tokenizer sinks: quadratic regex-engine compile bypasses the match-only timeout

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-19T17:19:13.777Z
- Modified: 2026-11-20T22:17:49.180Z
- Also known as: GHSA-32p6-cwhc-8r78
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.0 until 3.10.4, TokenSearcher.findall and Text.findall accept caller-controlled regular expressions with an unbounded number of capturing groups throughout the affected range. Starting in 3.10.3, nltk.redos.compile and RegexpTokenizer expose the same compile-time vector. The third-party regex engine compiles group-dense patterns with roughly quadratic cost before the match-time timeout begins, allowing a small unauthenticated request to exhaust CPU and deny service. This issue is fixed in version 3.10.4.

(As written by CVE List.)

## Affected

- nltk nltk: >= 3.10.0, < 3.10.4
- nltk (PyPI): from 3.10.0 before 3.10.4

## Every score

- GitHub_M: 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-32p6-cwhc-8r78> (exploit, web)
- <https://github.com/nltk/nltk/pull/3895> (web)
- <https://github.com/nltk/nltk/commit/002bcf714ef8cb8baf94436f4be73e5516914412> (web)
- <https://github.com/nltk/nltk/releases/tag/v3.10.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129229> (advisory)
- <https://github.com/nltk/nltk> (package)

## Sources

- CVE List: [CVE-2026-129229](https://www.cve.org/CVERecord?id=CVE-2026-129229), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-32p6-cwhc-8r78](https://github.com/advisories/GHSA-32p6-cwhc-8r78), CC-BY-4.0, modified 2026-11-20
- NVD: [CVE-2026-129229](https://nvd.nist.gov/vuln/detail/CVE-2026-129229), Public domain, modified 2026-11-20

---

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