Skip to main content

NLTK WordNet CVE-2026-129230

| EUVDEUVD-2026-130431 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-11-19 GitHub_M GHSA-53pg-5qp8-mhvr
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted WordNet corpus file
  2. Delivery
    Victim loads untrusted corpus
  3. Exploit
    Cyclic @ hypernym pointers parsed and stored
  4. Execution
    App calls hypernym/similarity traversal API
  5. Persist
    Unbounded recursion raises RecursionError
  6. Impact
    Worker/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.

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

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

Alert me

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

nltk < 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 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

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

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.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
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:27 cve.org
MEDIUM 5.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. 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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
High
NLTK is a very widely used Python NLP library across research and industry
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.2%
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
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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