CVE-2026-129231
One long corpus line could monopolize an NLTK reader
NLTK project · Natural Language Toolkit · Unicode corpus reader
First documented disclosure · Review checkpoint
Summary
A corpus with an unusually long line could monopolize a worker during text ingestion.
Severity and exploitation evidence
Medium · 5.3/10 · CVSS 3.1. Severity source.
Exploitation not established: The NLTK advisory describes the vulnerability and its preconditions. The reviewed sources identify no malicious use.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
The Unicode line reader repeatedly scanned its growing input buffer.
Conditions required
An application uses the affected line reader on a corpus supplied by an untrusted source.
Potential impact
A line with no intervening boundary could tie up a worker for disproportionate time.
Affected versions and configurations
<= 3.10.3
Fix and mitigation status
3.10.4.
Practical next steps
Upgrade to NLTK 3.10.4 or a later fixed release.
Operating lesson
Limit individual record sizes and use readers that scan each segment once.
Evidence and limits
The issue-specific patch was public by 2026-09-15. The fixed release shipped October 21. The November 15 maintainer advisory supplies the identifier and affected versions. This is a historical addition.
Sources
- NLTK public patch for Unicode corpus reader
Primary source ·
- NLTK 3.10.4 release notes
Primary source ·
- NLTK advisory GHSA-q4c8-9gwf-255x
Primary source ·