PT-2026-146634
CVE-2026-126303
·
Published
2026-11-13
·
Updated
2026-11-13
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
An uncontrolled resource consumption issue exists in the
SteppingRecursiveDescentParser.parse() function. The parser performs an unbounded top-down search over ambiguous or self-embedding context-free grammars without a wall-clock or step limit. An attacker who can influence the grammar and provide a short token input can force the parse() function to pin a CPU core indefinitely, leading to a denial of service. This occurs because the SteppingRecursiveDescentParser subclass overrides the parse() and parse() functions and its init constructor does not accept a max time parameter, bypassing the security guards present in the base RecursiveDescentParser class.Recommendations
Update NLTK to version 3.10.4 or later.
As a temporary workaround, avoid invoking
SteppingRecursiveDescentParser.parse() on grammars or input derived from untrusted sources.
Restrict the use of SteppingRecursiveDescentParser by running the parsing process under an external timeout or within a separate resource-limited process.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾