Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129223

 

Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129223

Published: November 17, 2026


Vulnerability identifier: #VU166494
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-129223
CWE-ID: CWE-674
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by crashing an application using NLTK.

The vulnerability exists due to uncontrolled recursion in the traversal helpers behind Synset.tree() and Synset.acyclic_tree() when traversing custom WordNet-format lexical resources with default unlimited depth. A remote attacker can supply an attacker-controlled resource containing a long acyclic relation chain that the application traverses to exhaust the Python call stack and trigger an unhandled RecursionError.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-129223

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins