Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach application using SteppingRecursiveDescentParser.parse()
-
DeliverySupply ambiguous self-embedding CFG and short token input
-
ExploitTrigger unbounded top-down recursive-descent search
-
ExecutionCatalan-sized derivation space pins CPU core
-
ImpactRepeat to exhaust worker pool, deny service
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 that the target application actually invoke nltk.parse.SteppingRecursiveDescentParser.parse() (a public exported symbol) on BOTH a grammar the attacker can influence - specifically an ambiguous, self-embedding context-free grammar such as |
| Impact | The CVSS 4.0 signals (8.7, AV:N/AC:L/AT:N/PR:N/UI:N) describe a remotely reachable, low-complexity, no-authentication issue, but the only impact metric set is VA:H - this is an availability-only denial-of-service flaw with no confidentiality or integrity impact (VC:N/VI:N). The vuln.today Decision label is 'this_week', consistent with a serious but non-emergency priority rather than act_now/emergency. Critically, the high AV:N/PR:N rating reflects a 'worst-credible deployment' assumption from the GHSA advisory, not a universal condition: exploitation requires a caller to use SteppingRecursiveDescentParser.parse() on grammar AND token input the attacker can influence, and the advisory itself notes this parser is primarily a debugging/interactive-stepping component that backs a GUI, so real-world exposure is narrower than for the base parser. No KEV listing and no EPSS score are provided in the input, so there is no signal of active exploitation or statistically modeled exploitation probability; the GHSA advisory does include a working reproduction PoC. Net: a genuine, deterministic DoS in a widely-installed library, but its practical priority is tempered by the unusual precondition that the application must feed attacker-influenced grammars into this specific, rarely-exposed parser rather than a chart/Earley parser - treat as a this-week patch item, not a drop-everything emergency. |
| Exploit ScenarioDerived | An application exposes a text-parsing endpoint that lets users supply or influence the context-free grammar and submits it, with a short token list, to nltk.parse.SteppingRecursiveDescentParser.parse(). An attacker sends an ambiguous self-embedding grammar such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by calling SteppingRecursiveDescentParser.parse() with an attacker-influenced ambiguous, self-embedding context-free grammar and a short token sequence. The CVSS 4.0 vector is network-reachable, low-complexity and unauthenticated (PR:N), but availability is the only impacted metric; exploitation requires the application to use this stepping parser on untrusted grammar and input, and the component is primarily a debugging/GUI-oriented subclass, so real-world exposure is narrower than the base parser. A public proof-of-concept reproduction is included in the advisory; no CISA KEV entry is provided.
RemediationAI
Upgrade to NLTK 3.10.4 or later, the fixed version identified in the supplied package data; the advisory is at https://github.com/nltk/nltk/security/advisories/GHSA-8fx7-8jr8-84rv. The supplied fix-status note records an in-progress PR (#3895) adding a max_time parameter defaulting to 5.0 seconds and honoring the parse deadline in SteppingRecursiveDescentParser, and says no release was listed at that checkpoint, so verify that the 3.10.4 artifact in your package index contains the fix before relying on it. Where upgrading is not yet possible, do not call SteppingRecursiveDescentParser.parse() on grammars or token input derived from untrusted sources; run such parsing under an external wall-clock timeout in a separate resource-limited process, or use a chart parser for untrusted input, accepting the functional and performance trade-offs of changing parser behavior.
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
The flaw is an algorithmic denial of service (CWE-400, also CWE-407) in NLTK's recursive-descent parsing code. RecursiveDescentParser._parse arms a wall-clock deadline on the first step and raises TimeoutError once max_time (default 5.0 seconds) is exceeded, but SteppingRecursiveDescentParser overrides parse() and _parse: its parse() runs initialize() then a while self.step() is not None loop that never enters the guarded base _parse, its _parse override merely records history and returns a sentinel without checking self._parse_deadline or self._max_time, and its __init__ signature is (self, grammar, trace=0) with no max_time parameter. An ambiguous self-embedding CFG such as S -> 'a' S S | 'a' with a short input causes the un-memoized top-down search to enumerate a Catalan-number-sized derivation space; the step loop is iterative over an explicit history stack, so it does not terminate with RecursionError and instead consumes CPU indefinitely.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Availability-only DoS (C:N/I:N/A:H); in the worst-credible deployment attacker-influenced grammar and input reach the parser remotely without auth, so AV:N/AC:L/PR:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
NLTK before 3.10.4 contains an uncontrolled resource consumption vulnerability in SteppingRecursiveDescentParser.parse() that lacks any max_time deadline or step limit. Attackers influencing the grammar can supply an ambiguous self-embedding grammar and short token input to force unbounded top-down search, pinning CPU cores and exhausting worker pools.
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.
Technical POC Analysis
CWE-400 (Uncontrolled Resource Consumption), with the advisory also tagging CWE-407 (Inefficient Algorithmic Complexity), in the Python package nltk, module nltk/parse/recursivedescent.py, class nltk…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CVE-2026-126303 is a high-severity denial-of-service vulnerability in NLTK versions before 3.10.4, affecting applications that use the SteppingRecursiveDescentParser on untrusted grammars and inputs. An unauthenticated remote attacker could exploit this to pin a CPU core and exhaust worker pools, potentially degrading service availability for legitimate users. Leadership should care because this could disrupt operations and require emergency patching, though exposure is limited to a specific, less-common component.
Apply vendor patch.
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
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
Server-side request forgery in NLTK before 3.10.3 allows unauthenticated remote attackers to reach internal HTTP service
EUVD-2026-125218
GHSA-4hvg-fv5c-9936
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB