{"id":"CVE-2026-129231","aliases":["GHSA-q4c8-9gwf-255x"],"title":"NLTK: Quadratic-time DoS in SeekableUnicodeStreamReader.readline on an unterminated corpus line via per-iteration full-buffer rescan","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. Prior to 3.10.4, SeekableUnicodeStreamReader.readline appends each new block to a growing character buffer and reruns splitlines over the entire buffer on every iteration. An attacker-controlled corpus file containing one very long unterminated line therefore causes quadratic CPU consumption in line-oriented corpus readers and can deny service. This issue is fixed in version 3.10.4.","severity":{"cvss":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.0048,"percentile":0.43082},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"nltk","range":"<= 3.10.3","fixed":"3.10.4"},{"ecosystem":"PyPI","name":"nltk","range":">=0, <3.10.4","fixed":"3.10.4"}],"references":[{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-q4c8-9gwf-255x","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-129231","type":"other"},{"url":"https://github.com/advisories/GHSA-q4c8-9gwf-255x","type":"other"},{"url":"https://github.com/nltk/nltk","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129231.json","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-20T22:28:15.417Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129231","license":"NVD terms of use","firstSeenAt":"2026-11-19T18:29:03.136Z"},{"name":"osv","at":"2026-11-21T00:07:42.826Z","url":"https://osv.dev/vulnerability/CVE-2026-129231","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T00:29:26.761Z"},{"name":"ghsa","at":"2026-12-04T09:31:11.820Z","url":"https://github.com/advisories/GHSA-q4c8-9gwf-255x","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T23:55:58.705Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:14.490Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-129231","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T17:20:37.921Z"}],"firstSeenAt":"2026-11-19T17:20:37.921Z","publishedAt":"2026-11-19T17:16:42.838Z","modifiedAt":"2026-11-20T22:45:38.439Z"}