Read the docs

Uncontrolled recursion in NLTK WordNet tree traversal enables crash

Priority MEDIUM 40CWE-674Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-674.

Summary

NLTK versions before 3.10.4 are affected. WordNet Synset.tree and acyclic_tree traverse relation graphs through recursive helpers with no depth bound (CWE-674). An attacker who can influence a custom or foreign WordNet-format resource that the host application loads can make the traversal exceed the Python recursion limit, which terminates the traversal or request worker. The bundled WordNet 3.0 corpus does not reach that threshold.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

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, WordNet Synset.tree and acyclic_tree traverse relation graphs through recursive utility helpers without a depth bound. Exploitation requires the host application to load an attacker-influenced custom or foreign WordNet-format lexical resource; no relation in NLTK's bundled WordNet 3.0 corpus reaches the crash threshold. An excessively deep relation graph in such a resource can exceed the Python recursion limit and terminate the traversal or request worker. This issue is fixed in version 3.10.4.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00609 43rd percentileScored 2026-11-30
Fix Fixed nltk (nltk): 3.10.4nltk (PyPI): 3.10.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
nltknltkbefore 3.10.43.10.4Patch availableCNA
—nltk (PyPI)before 3.10.43.10.4Patch availableGHSA-8846-p9w9-5frf
  • nltk Vendornltk Affected before 3.10.4 Fixed in 3.10.4 Patch available CNA
  • nltk (PyPI) Vendor— Affected before 3.10.4 Fixed in 3.10.4 Patch available GHSA-8846-p9w9-5frf

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*——nltk
  • cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* Versions — — ·nltk

Remediation

Upgrade nltk to version 3.10.4, the fixed version listed for both the nltk product and the PyPI package.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA nltk (nltk) Fixed in 3.10.4
  • Fix · GHSA-8846-p9w9-5frf nltk (PyPI) Fixed in 3.10.4 Advisory →

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-129223
  2. 2026-11-20 Alias added: GHSA-8846-p9w9-5frf
  3. 2026-11-20 Fix available: PyPI/[email protected] · GHSA-8846-p9w9-5frf
  4. 2026-11-20 CVSS score added · GHSA-8846-p9w9-5frf
  5. 2026-11-20 Weakness changed · GHSA-8846-p9w9-5frf
  6. 2026-11-20 5 new references · GHSA-8846-p9w9-5frf
  7. 2026-11-20 CISA SSVC decision points changed
  8. 2026-11-21 EPSS moved to the below the 50th percentile

References

  • TI-2026-95059 NLTK incomplete fix allows JVM sandbox bypass via launcher tokens CVSS 3.1CRITICAL 9.8
  • TI-2026-00629 Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading CVSS 3.0CRITICAL 10.0
  • TI-2025-12800 Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution CVSS 3.0CRITICAL 10.0
  • TI-2026-55173 NLTK before 3.10.3 JVM Argument Injection via Per-Call Options CVSS 4.0CRITICAL 9.3
  • TI-2026-55155 NLTK before 3.10.3 Remote Code Execution via Unsafe Pickle Deserialization CVSS 4.0CRITICAL 9.3
  • TI-2026-91242 Symlink escape in NLTK YCOECorpusReader lets attackers read files CVSS 4.0HIGH 8.7
See all 77 →

Sources