1. Home
  2. Vulnerabilities
  3. CVE-2026-126303

CVE-2026-126303

NLTK before 3.10.4 Denial of Service via SteppingRecursiveDescentParser.parse()

Published 13 Nov 2026 · modified 13 Nov 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 50/100

Summary

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.

Affected products and versions

Nltk (1 line(s))
Nltk
ProductVersionsFixed inSource
Nltk before 3.10.4 (excluded) — CNA (vendor or assigner)
Pypi (1 line(s))
Pypi
ProductVersionsFixed inSource
nltk before 3.10.4 (excluded) 3.10.4 GitHub Advisory

Fix

Upgrade — PyPI/nltk 3.10.4official source

Source : GitHub Advisory

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
CWE-400 · Autre (CWE-400)

How this data is obtained and calculated