Skip to main content

NLTK EUVDEUVD-2026-130429

| CVE-2026-128140 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-11-19 GitHub_M GHSA-pcm8-fqjx-rvx8
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control or MITM an untrusted index URL
  2. Delivery
    Serve crafted cyclic collection XML index
  3. Exploit
    Victim runs nltk.downloader operation
  4. Execution
    Closure BFS re-enters cycle without visited set
  5. Impact
    Queue 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

nltk 3.6.7, < 3.10.4

Affected Packages

pypi nltk fix: 3.10.4

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

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

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).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 6.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 19:34 EUVD
CVE Published
Nov 19, 2026 - 17:23 cve.org
MEDIUM 6.5

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 33 pypi packages depend on nltk (26 direct, 7 indirect)

Ecosystem-wide dependent count for version 3.6.7.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
High
extremely popular Python NLP library across ML, research and data-science stacks
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Nltk

View all
CVE-2026-79657 CRITICAL POC
9.3 Aug 25

Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p

CVE-2026-78683 CRITICAL POC
9.4 Aug 25

Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic

CVE-2025-14009 HIGH POC
8.8 Feb 18

Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data dow

CVE-2026-63312 HIGH POC
8.7 Aug 22

StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc

CVE-2026-62384 HIGH POC
8.7 Aug 22

Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to

CVE-2026-126297 HIGH POC
8.7 Nov 13

CPU exhaustion in NLTK's ConllCorpusReader.srl_instances() lets an attacker who supplies a crafted CoNLL SRL corpus pin

CVE-2026-126298 HIGH POC
8.7 Nov 13

CPU exhaustion in NLTK's Tree.chomsky_normal_form() right-factor binarization affects NLTK through 3.10.3 and lets remot

CVE-2026-126299 HIGH POC
8.7 Nov 13

Quadratic CPU exhaustion in NLTK's CCG lexicon parser (nltk.ccg.lexicon.fromstring, also re-exported as nltk.ccg.chart.f

CVE-2026-126303 HIGH POC
8.7 Nov 13

Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by ca

CVE-2026-66393 HIGH POC
8.7 Aug 22

Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers

CVE-2026-62388 HIGH POC
8.7 Aug 22

Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse

CVE-2026-78681 HIGH POC
8.7 Aug 25

XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy