Skip to main content

NLTK CVE-2026-126303

| EUVDEUVD-2026-125218 HIGH
Uncontrolled Resource Consumption (CWE-400)
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Reach application using SteppingRecursiveDescentParser.parse()
  2. Delivery
    Supply ambiguous self-embedding CFG and short token input
  3. Exploit
    Trigger unbounded top-down recursive-descent search
  4. Execution
    Catalan-sized derivation space pins CPU core
  5. Impact
    Repeat 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 S -> 'a' S S | 'a' - and a short attacker-supplied token sequence (e.g. ~17 copies of 'a'). The decisive limiting factor is that this stepping subclass is primarily a debugging/interactive-stepping component backing a GUI, so applications rarely expose it to untrusted input; the far more common base RecursiveDescentParser already enforces a 5.0s max_time deadline and is not the vulnerable path. There is no code-level means to bound this subclass pre-fix: its __init__ signature is (self, grammar, trace=0) with no max_time parameter, and its step loop never consults the inherited deadline. Per the CVSS vector PR:N, no authentication, privilege, or user interaction is required in the worst-credible deployment, but the requirement to control the grammar (not merely the input tokens) is the key real-world constraint defenders should weigh.

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 S -> 'a' S S | 'a' with roughly 17 'a' tokens; because this subclass arms no max_time deadline or step limit, the single parse() call never returns and pins a CPU core. A GHSA advisory with working reproduction code is public; repeating the request across a bounded worker pool exhausts it and denies service to legitimate users.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.5% exploitation probability (EPSS)

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

Alert me

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

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

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 10:02 EUVD
CVE Published
Nov 13, 2026 - 09:36 cve.org
HIGH 8.7

DescriptionCVE.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
† 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.

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
High
NLTK is a very widely deployed Python NLP library across research and production
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
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-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

CVE-2026-78682 HIGH POC
8.7 Aug 25

Server-side request forgery in NLTK before 3.10.3 allows unauthenticated remote attackers to reach internal HTTP service

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