NLTK
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()
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, DependencyGraph.tree and DependencyGraph.triples walk parsed dependency edges through unbounded Python recursion and do not use a working cycle or depth guard. A crafted CoNLL or Malt-TAB dependency file containing a sufficiently long chain can raise RecursionError when the documented traversal APIs are called, aborting the current worker. This issue is fixed in version 3.10.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.10.4
Fixed in 3.10.4
Mitigation
Upgrade nltk to 3.10.4 or later.
References
- Vendor advisory github.com/nltk/nltk/security/advisories/GHSA-…
- Patch github.com/nltk/nltk/pull/3885
- Patch github.com/nltk/nltk/commit/a74682757cee8c1112…
1 more
- Release notes github.com/nltk/nltk/releases/tag/v3.10.4
Timeline
Days relative to CVE publicationFirst public PoC 4.1 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-129222 (created 23 Nov 2026, found by us: 23 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-129222 | 23 Nov 2026 +4.1 d | 23 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.