PT-2026-146630
CVE-2026-126299
·
Published
2026-11-13
·
Updated
2026-11-14
Description by
CVSS 4.0
8.7
HighMetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
NLTK versions prior to 3.10.4
Description
A denial of service issue exists in the CCG lexicon parser. Remote attackers can cause CPU exhaustion by providing wide inputs, such as lexicon text with long flat bracket bodies or operator chains. This triggers quadratic string re-slicing within the
matchBrackets() and augParseCategory() functions, which blocks worker threads and leads to availability loss. The issue is accessible via the nltk.ccg.lexicon.fromstring endpoint (also re-exported as nltk.ccg.chart.fromstring). The existing recursion-depth guard does not prevent this because the malicious inputs are flat, meaning their nesting depth remains at zero.Recommendations
Update to version 3.10.4 or later.
As a temporary mitigation, restrict the size of accepted lexicon input and parse it under a CPU or time budget in an isolated worker.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾