Skip to content
Threat Feed
medium advisory PoC

NLTK: Uncontrolled resource consumption in SteppingRecursiveDescentParser (CVE-2026-126303)

NLTK versions prior to 3.10.4 are vulnerable to a denial-of-service attack due to an uncontrolled resource consumption flaw in the SteppingRecursiveDescentParser.parse() method that allows CPU exhaustion via crafted grammars.

CVE search metadata

CVE search record: CVE-2026-126303. Severity: high. CVSS: 7.5. EPSS: 0.49%. KEV: no. Product: NLTK. Brief: NLTK: Uncontrolled resource consumption in SteppingRecursiveDescentParser (CVE-2026-126303). Brief link: https://feed.craftedsignal.io/briefs/2026-11-nltk-dos-cve-2026-126303/

Triage facts

Revision 2
Applicability
NLTK
Evidence
Unknown
Severity
Medium
Action
Elevated
Sources
2 public sources
Freshness
Revision 2Nov 13, 21:33 UTC
Vulnerabilities
1 CVE
Source quality
A1Likely
Revision history 1 entry · Revision 2
  1. Revision 2

    poc_available

    Changed: claim_state, cves, has_poc, lastmod, references, updates

    Sources: 1

NLTK versions prior to 3.10.4 contain an uncontrolled resource consumption vulnerability in the SteppingRecursiveDescentParser.parse() method. The vulnerability arises because the method lacks execution safeguards, such as max_time or step limits. An attacker who can influence the input grammar can supply a self-embedding grammar alongside short token input to force the parser into an unbounded top-down search. This activity pins CPU cores and exhausts application worker pools, resulting in a denial-of-service condition.

Impact

Successful exploitation results in high CPU utilization and potential unavailability of services relying on NLTK parsing, as worker threads or processes become pinned during the infinite search cycle.

Recommendation

  • Update NLTK to version 3.10.4 or later immediately.
  • Audit applications utilizing SteppingRecursiveDescentParser to determine if external inputs influence the grammar or token stream.
  • If updating is not immediately possible, implement application-level resource limits (e.g., timeout or worker process isolation) for the parsing component.

Immediate actions

Patch NLTK to version 3.10.4 or later across all environments.

IT Operations 48h

Threat Hunt

Monitor application logs or APM metrics for processes using NLTK parsing that exhibit sustained 100% CPU usage or worker thread pool saturation.

T1499 medium medium confidence hunt now

Data: APM process metrics, CPU utilization logs

Mitigations

Upgrade NLTK to 3.10.4.

immediate IT Operations

CVE-2026-126303