{"id":"CVE-2026-129229","aliases":["GHSA-32p6-cwhc-8r78"],"title":"NLTK: Compile-time regex DoS in NLTK search/tokenizer sinks: quadratic regex-engine compile bypasses the match-only timeout","originalDescription":"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.","severity":{"cvss":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.0055,"percentile":0.47506},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"nltk","range":">= 3.10.0, <= 3.10.3","fixed":"3.10.4"},{"ecosystem":"PyPI","name":"nltk","range":">=3.10.0, <3.10.4","fixed":"3.10.4"}],"references":[{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-32p6-cwhc-8r78","type":"x_refsource_CONFIRM"},{"url":"https://github.com/nltk/nltk/pull/3895","type":"x_refsource_MISC"},{"url":"https://github.com/nltk/nltk/commit/002bcf714ef8cb8baf94436f4be73e5516914412","type":"x_refsource_MISC"},{"url":"https://github.com/nltk/nltk/releases/tag/v3.10.4","type":"x_refsource_MISC"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129229","type":"other"},{"url":"https://github.com/advisories/GHSA-32p6-cwhc-8r78","type":"other"},{"url":"https://github.com/nltk/nltk","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129229.json","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-20T22:28:15.414Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129229","license":"NVD terms of use","firstSeenAt":"2026-11-19T18:29:03.130Z"},{"name":"osv","at":"2026-11-21T00:07:43.165Z","url":"https://osv.dev/vulnerability/CVE-2026-129229","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T00:29:26.553Z"},{"name":"ghsa","at":"2026-12-04T08:58:10.106Z","url":"https://github.com/advisories/GHSA-32p6-cwhc-8r78","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T23:55:58.689Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:14.469Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-129229","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T17:53:36.579Z"}],"firstSeenAt":"2026-11-19T17:53:36.579Z","publishedAt":"2026-11-19T17:19:13.777Z","modifiedAt":"2026-11-20T22:45:16.218Z"}