home / blog

2026-11-23 · high

CVE-2026-129223: NLTK High RecursionError Vulnerability

CVE-2026-129223: NLTK vulnerable to RecursionError with custom WordNet resources, public exploits available

CVE-2026-129223: NLTK High RecursionError Vulnerability

CVE-2026-129223 is a security vulnerability in NLTK (Natural Language Toolkit) affecting versions prior to 3.10.4. The flaw involves the lack of a depth limit in WordNet Synset.tree and acyclic_tree functions, which traverse relation graphs through recursive utilities. An attacker can exploit this vulnerability by providing a custom WordNet lexical resource with an excessively deep acyclic relation chain, exceeding Python's recursion limit and causing the application to crash.

The vulnerability severity is rated high with a CVSS score of 7.5. According to NVD data published on November 19, 2026, there are already public repositories claiming to contain exploits for this vulnerability. The GitHub signal from November 23, 2026 confirms the existence of code that causes Synset.tree() to crash with RecursionError on vulnerable versions, while the patched version applies a depth limit.

For defense, administrators should immediately update NLTK to version 3.10.4 or later to address the vulnerability. For applications that cannot be updated immediately, it is recommended to implement strict validation on loaded WordNet lexical resources, limiting the depth of acyclic relations. Additionally, administrators should monitor applications for anomalous crashes and consider implementing custom recursion limits as a temporary measure.

At a glance

What
Unlimited recursion vulnerability in WordNet Synset.tree and acyclic_tree
Severity
CVSS 7.5 (high)
Affected versions
NLTK versions prior to 3.10.4
Fix
Update to version 3.10.4
Status
Published in NVD on 2026-11-19
Action
Update NLTK to the latest available version

Sources: NVD, CVE-2026-129223

← All articles