CVE-2026-129231
Description
NLTK =3.10.3: SeekableUnicodeStreamReader.readline re-ran splitlines over the whole growing buffer per 8000-char block — one unterminated line of N chars costs O(N^2) CPU through the default size=None corpus path. Verbatim data.py 3.10.3 vs 3.10.4: a single 8M-char line burns ~3 s on vuln, 0.012 s linear on fixed (002bcf71).
CVE-CVE-2026-129231 Details
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 ...
Related PoCs for CVE-2026-129231
No other PoCs found for this CVE.