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

 

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

Published: November 16, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to uncontrolled recursion without cycle detection or depth limits in NLTK's WordNet Synset max_depth, min_depth, hypernym_paths, and hypernym_distances methods when traversing untrusted corpus hypernym graphs. A remote attacker can supply a corpus containing cyclic or excessively deep hypernym pointers and induce the victim to load it and invoke a depth, path, or similarity method, triggering an uncaught RecursionError that terminates the traversal and potentially an unprotected worker.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-129230

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins