CVE-2026-126303
NLTK before 3.10.4 contains an uncontrolled resource consumption …
NLTK before 3.10.4 contains an uncontrolled resource consumption vulnerability in SteppingRecursiveDescentParser.parse() that lacks any max_time deadline or step limit. Attackers influencing the grammar can supply an ambiguous self-embedding grammar and short token input to force unbounded top-down search, pinning CPU cores and exhausting worker pools.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nltk/nltk/security/advisories/GHSA-8fx7-8jr8-84rv
- www.vulncheck.com/advisories/nltk-before-3.10.4-denial-of-service-via-steppingrecursivedes
- nvd.nist.gov/vuln/detail/CVE-2026-126303
- github.com/nltk/nltk/pull/3895
- github.com/nltk/nltk/commit/e20c40e26ec9306de885703f6e53250695f1f49b
- github.com/advisories/GHSA-8fx7-8jr8-84rv
- github.com/nltk/nltk/releases/tag/v3.10.4
- nvd.nist.gov/vuln/detail/CVE-2026-126303
- cve.org/CVERecord?id=CVE-2026-126303
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.