Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl or MITM an untrusted index URL
-
DeliveryServe crafted cyclic collection XML index
-
ExploitVictim runs nltk.downloader operation
-
ExecutionClosure BFS re-enters cycle without visited set
-
ImpactQueue and memory grow until OOM (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
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's nltk.downloader to fetch its data-server index from a URL the attacker can control or intercept - configured via the server_index_url constructor argument, the CLI -u/--url option, the NLTK_DOWNLOAD_URL environment variable, or the Shell/GUI 'Set Server URL' - or the default GitHub-hosted index being compromised or MITM'd. The malicious trigger is a cyclic <collection> (e.g. <collection id="a"><item ref="a"/></collection>) in that index; the index is otherwise ordinary-sized. Any downloader entry point (download(), info(), packages(), collections(), status(), or nltk.download()) then funnels through _update_index and hangs, and the hang recurs on every subsequent operation until the index is replaced. Limiting factors: the default configuration points at a trusted GitHub-hosted index, so real-world exploitation hinges on non-default mirror configuration or host/transport compromise (the UI:R / interaction requirement), impact is availability-only (no C/I), and only versions 3.6.7 through 3.10.3 are affected - 3.10.4 is fixed. |
| Impact | Signals point to a moderate, availability-only issue rather than an urgent priority. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, base 6.5) shows network reach and low attack complexity but requires user interaction and yields no confidentiality or integrity impact - only denial of service (CWE-835 infinite loop with unbounded memory growth). A working proof-of-concept exists: the GHSA-pcm8-fqjx-rvx8 advisory embeds a self-checking reproduction script dynamically verified 4/4 against 3.6.7, 3.9.2, 3.10.3 and develop. However, there is no CISA KEV listing (not confirmed actively exploited) and no EPSS score was provided in the input, so widespread opportunistic exploitation cannot be quantified from the data. The practical risk is bounded by a real deployment precondition the raw CVSS does not capture: PR:N/AC:L understates that exploitation depends on the victim pointing nltk.downloader at an attacker-controlled, untrusted, or MITM'd index URL rather than the default trusted GitHub-hosted index. The vendor priority label is 'this_month', consistent with a serious-but-not-emergency DoS. Net: a credible, reproducible availability bug worth patching on a normal cycle, not a drop-everything emergency, especially for deployments that only use the default index. |
| Exploit ScenarioDerived | An attacker who controls or can MITM an NLTK data-server index URL (a third-party or internal mirror, or a compromised/CDN-poisoned index host) serves a crafted index containing a self-referencing or mutually-referencing <collection> element. When a victim subsequently runs any nltk.downloader operation (download(), info(), packages(), etc.), _update_index's package-closure breadth-first walk - which has no visited set or depth cap - loops indefinitely, spinning CPU at 100% and growing memory until the process is OOM-killed. A complete, dynamically verified reproduction script and the exact malicious index XML are published in the GHSA advisory, so the trigger is fully documented; low attack complexity means the crafted index itself is trivial to produce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
Denial of service in NLTK's downloader affects nltk 3.6.7 through 3.10.3: a cyclic <collection> entry in a data-server index makes the package-closure walk in Downloader._update_index loop indefinitely while its queue and memory use grow. Because every downloader entry point (download(), info(), packages(), collections(), status(), and nltk.download()) calls _update_index, a victim who processes an attacker-influenced index ends up with a process pinned at 100% CPU until it is killed or runs out of memory. The default configuration uses a trusted GitHub-hosted index, so practical exploitation hinges on a non-default mirror, a compromised or intercepted index host, or an operator-supplied URL; impact is availability-only, and the supplied data does not confirm active exploitation, though the advisory publishes a lab reproduction script.
RemediationAI
Vendor-released patch: upgrade to nltk 3.10.4 (PyPI). The fix, tracked in GHSA-pcm8-fqjx-rvx8 (https://github.com/nltk/nltk/security/advisories/GHSA-pcm8-fqjx-rvx8), PR #3767 (https://github.com/nltk/nltk/pull/3767), commit b77d329db934711e053520588b22b4ac73539fa2, and release v3.10.4 (https://github.com/nltk/nltk/releases/tag/v3.10.4), replaces the manual closure BFS with acyclic_breadth_first and adds regression tests. If upgrading must be staged, point server_index_url, the -u/--url CLI option, NLTK_DOWNLOAD_URL, and the Shell/GUI 'Set Server URL' only at an index source you control and can verify; this prevents loading a hostile cyclic index but does not fix the vulnerable traversal and will block use of untrusted third-party mirrors. Applying the 3.10.4 upgrade is the complete vendor fix.
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 downloader consumes an XML data-server index containing <packages> and <collections> elements. Collection.fromxml stores each <item ref="..."> as a string, and _update_index later resolves those strings into live Collection and Package objects; a self-reference (<collection id="a"><item ref="a"/></collection>) or mutual reference therefore becomes an object-level cycle in Collection.children. The closure computation at nltk/downloader.py:1300-1310 iterates 'for child in queue' while calling 'queue.extend(child.children)' inside the same loop, with no visited set and no depth or node cap. Python's list iterator consumes elements appended during iteration, so a cycle makes the queue and iterator advance forever: CPU stays at 100% and memory grows until the process is killed or hits an address-space limit. This is CWE-835 (Loop with Unreachable Exit Condition), a pure availability weakness; no confidentiality or integrity impact is described. The advisory dynamically reproduced it on 3.6.7, 3.9.2, 3.10.3, and develop commit 6818767b9; 3.6.0 through 3.6.6 share the BFS code path by static review but were not run.
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:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Crafted index is served remotely with trivial complexity and no attacker privileges (AV:N/AC:L/PR:N), but the victim must process an attacker-influenced index (UI:R); impact is availability-only via infinite loop (C:N/I:N/A:H).
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. From 3.6.7 until 3.10.4, nltk.downloader follows collection membership without tracking already visited collection nodes. A self-referencing or mutually referencing collection index can therefore make the package-closure walk loop indefinitely while its queue and memory usage grow, denying service when a victim processes the attacker-influenced index. This issue is fixed in version 3.10.4.
Blast Radius
ecosystem impact- 33 pypi packages depend on nltk (26 direct, 7 indirect)
Ecosystem-wide dependent count for version 3.6.7.
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-130429
GHSA-pcm8-fqjx-rvx8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB