Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted WordNet corpus file
-
DeliveryVictim loads untrusted corpus
-
ExploitCyclic @ hypernym pointers parsed and stored
-
ExecutionApp calls hypernym/similarity traversal API
-
PersistUnbounded recursion raises RecursionError
-
ImpactWorker/traversal aborted (availability loss)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim application to load an attacker-controlled WordNet data.<pos> corpus file (for example a downloaded, mirrored, or user-supplied corpus) in which the @ hypernym pointer offsets form a cycle or a chain deeper than sys.getrecursionlimit(), and to then invoke one of the affected Synset methods - hypernym_paths or hypernym_distances directly, or max_depth/min_depth indirectly via lowest_common_hypernyms, wup_similarity, path_similarity, or lch_similarity. No special privileges and no authentication are needed (PR:N), but the attack is local (AV:L) and gated by user interaction (UI:R): it does not work against a default deployment that only processes the official trusted WordNet corpus, and it cannot be triggered over the network without the application first choosing to load untrusted corpus content. These constraints - untrusted-corpus trust boundary plus a method call that reaches a walker - are the key factors limiting real-world risk. |
| Impact | This is a genuine but bounded issue best treated as routine patch-cycle work, not an emergency, consistent with the input's 'this_month' decision label. The CVSS vector (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, base 5.5 Medium) tells the real story: impact is availability-only (C:N/I:N/A:H), the attack vector is local (AV:L), and user interaction is required (UI:R) - the victim must load an attacker-supplied WordNet corpus and then invoke an affected traversal API. There is no KEV listing and no EPSS score was supplied in the input, so there is no signal of active or probable widespread exploitation; absence of EPSS is a data gap, not a low score. A working proof-of-concept is embedded in the GHSA advisory (two synsets whose @ hypernym pointers form a 2-cycle, triggering an uncaught RecursionError), which raises practical reproducibility but, per the distinction between PoC availability and active exploitation, does not indicate in-the-wild use. The dominant limiting factor is the trust model: exploitation hinges entirely on the victim consuming an untrusted/attacker-controlled corpus file, which is a non-default, application-specific condition rather than a reachable network surface. Note one data conflict to verify: the CVE description and the v3.10.4 release tag state the fix shipped in 3.10.4, but the GitHub fix-status evidence (dated 2026-09-28) states the fix was still on an open pull request (#3895) and not yet released, with develop still vulnerable - confirm the fixed release actually exists before relying on 3.10.4. |
| Exploit ScenarioDerived | An application ingests a downloaded, mirrored, or user-provided WordNet data.<pos> corpus file whose hypernym (@) pointer offsets have been crafted by an attacker to form a cycle or a chain deeper than the interpreter recursion limit. When the application later calls hypernym_paths, hypernym_distances, or a similarity routine such as wup_similarity/path_similarity/lch_similarity (which reach max_depth/min_depth), the walker recurses without bound and raises an uncaught RecursionError, aborting the traversal and any worker that does not catch it. A working PoC demonstrating this exists in the GHSA advisory; the local vector and required corpus-loading step mean this is not a remote drive-by. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
Uncontrolled recursion in NLTK's WordNet Synset hypernym walkers (max_depth, min_depth, hypernym_paths, hypernym_distances) lets an attacker who supplies a crafted WordNet data.<pos> corpus trigger an uncaught RecursionError, aborting traversals, similarity operations, and any worker that does not catch it. NLTK versions through 3.10.3 are affected; the advisory and v3.10.4 release reference identify 3.10.4 as the fix, while the supplied status note says the change was still on open PR #3895 at that check. The issue is local, requires the victim to load untrusted corpus content and call an affected method, is availability-only, and the advisory includes a minimal cyclic-graph proof of concept rather than evidence of active exploitation.
RemediationAI
Vendor-released patch: 3.10.4, per the advisory and v3.10.4 release reference. Verify that 3.10.4 is actually available in your package index before relying on it, because the supplied 2026-09-28 fix-status note records the change as still in progress on open PR #3895 and not yet on develop, with no release at that check. The fix commit is 34adf1ee425b5c817d2a88c674bac68672e3ab26, the proposed fix is PR #3895 at https://github.com/nltk/nltk/pull/3895, and the advisory is GHSA-53pg-5qp8-mhvr at https://github.com/nltk/nltk/security/advisories/GHSA-53pg-5qp8-mhvr. If 3.10.4 is not yet available, the advisory's interim mitigation is to wrap calls to these methods in a RecursionError handler and set a conservative sys.setrecursionlimit, but this only converts the crash into a handled error rather than removing the unbounded traversal; applications should also avoid loading untrusted, mirrored, or user-provided WordNet data.<pos> corpora until patched. The proper fix threads a visited-node set and/or an explicit maximum depth through max_depth, min_depth, hypernym_paths, and hypernym_distances, mirroring the acyclic helpers already used by closure, tree, and _shortest_hypernym_paths.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NLTK's WordNet corpus reader parses data.<pos> files and builds Synset objects whose @ hypernym pointer offsets are stored from corpus content. In max_depth, min_depth, hypernym_paths, and hypernym_distances, traversal follows those pointers by direct recursion without a visited-node set or explicit depth cap. The _max_depth and _min_depth memo is assigned only after the recursive expression returns, so a cyclic graph re-enters a node that is still on the recursion stack and remains unmemoized; a non-cyclic chain deeper than sys.getrecursionlimit() produces the same failure. This is CWE-400 uncontrolled resource consumption with the more specific CWE-674 uncontrolled recursion. Sibling walkers in the same class, closure, tree, and _shortest_hypernym_paths, already use acyclic or visited guards, indicating the four affected methods are an unhardened gap. The trigger is an attacker-chosen graph topology in corpus content, reached directly through hypernym_paths or hypernym_distances, or indirectly through lowest_common_hypernyms, wup_similarity, path_similarity, and lch_similarity.
Know when Nltk gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Attacker needs no privileges (PR:N) but the victim must load an untrusted corpus and call a traversal API, so AV:L and UI:R; impact is availability-only (A:H) with no C/I effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.max_depth, min_depth, hypernym_paths, and hypernym_distances recursively follow attacker-controlled corpus pointers without a visited-node set or depth cap. A cyclic or excessively deep hypernym graph can raise RecursionError and terminate traversal APIs and similarity operations that depend on them. This issue is fixed in version 3.10.4.
Blast Radius
ecosystem impact- 6,309 pypi packages depend on nltk (3,111 direct, 3,281 indirect)
Ecosystem-wide dependent count for version 3.10.4.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p
Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic
Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data dow
StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc
Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to
CPU exhaustion in NLTK's ConllCorpusReader.srl_instances() lets an attacker who supplies a crafted CoNLL SRL corpus pin
CPU exhaustion in NLTK's Tree.chomsky_normal_form() right-factor binarization affects NLTK through 3.10.3 and lets remot
Quadratic CPU exhaustion in NLTK's CCG lexicon parser (nltk.ccg.lexicon.fromstring, also re-exported as nltk.ccg.chart.f
Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by ca
Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers
Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse
XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s
EUVD-2026-130431
GHSA-53pg-5qp8-mhvr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB