Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in Synset.tree()/acyclic_tree() via WordNet
Affects nltkSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 3.10.4 soon.
Data as of 20 Nov 2026, 00:28 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 3.10.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 19 Nov 2026.
What to do
Upgrade nltk to 3.10.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPInltk | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade NLTK to version 3.10.4 or later, where this vulnerability is fixed by applying a maximum recursion depth safeguard to the affected traversal functions. If upgrading is not immediately possible, avoid calling Synset.tree() or Synset.acyclic_tree() with untrusted or custom WordNet-format lexical resources or limit the depth parameter explicitly to prevent deep recursion. Note that Synset.closure() is not affected and can be used safely as an alternative traversal method.
Description
NLTK versions prior to 3.10.4 contain a vulnerability in the Synset.tree() and Synset.acyclic_tree() methods where recursive traversal lacks a maximum call-depth safeguard. This can lead to a crash via unhandled RecursionError when processing a long, genuinely acyclic relation chain in a custom WordNet-format lexical resource. The default bundled WordNet corpus is not affected due to its shallow relation depths. The vulnerability does not affect Synset.closure(), which uses an iterative traversal method. A fix is available in version 3.10.4.
References
- github.com/nltk/nltk/security/advisories/GHSA-8846-p9w9-5frf (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-129223 (opens in a new tab)
- github.com/nltk/nltk/commit/0e474a7d73c95b42aa2c792f364e4f9bf4096c56 (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.4 (opens in a new tab)