CVE-2026-129227
Description
NLTK =3.10.3: Tree.fromlist recursed without a depth bound (the fromstring MAX_TREE_DEPTH cap was never applied) — adversarially deep nested lists raise an unhandled RecursionError in parsing pipelines. Verbatim tree.py 3.10.3 vs 3.10.4: depth 3000 RecursionError on vuln, bounded ValueError at MAX_TREE_DEPTH=500 on fixed (ae4c5c90).
CVE-CVE-2026-129227 Details
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, Tree.fromlist recursively converts nested Python list input into Tree objects without enforcing a maximum tree depth. An attacker-controlled list nested beyond the interpreter recursion limit can raise RecursionError and terminate the current parse operation or request worker. This issue is fixed in version 3.10.4....
Related PoCs for CVE-2026-129227
No other PoCs found for this CVE.