Skip to main content
CVE-2026-126303VulnerabilityPublished

NLTK: Unbounded CPU consumption

Affects nltkSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126303· High 8.7

Not known to be exploited · CVSS 8.7 High : upgrade to 3.10.4 soon.

Data as of 13 Nov 2026, 23:33 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.08.7
CNA (VulnCheck)CVSS 3.17.5
Patch
Available – fixed in 3.10.4
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.

What to do

Upgrade nltk to 3.10.4.

Affected software

ProductAffectedFixed in
PyPInltkAffected
  • <3.10.4
Fixed in
  • 3.10.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in NLTK version 3.10.4. Users should upgrade to this version or later to ensure that the SteppingRecursiveDescentParser enforces time bounds on parsing operations. Until upgraded, avoid using SteppingRecursiveDescentParser.parse() on untrusted or attacker-influenced grammars and inputs. The base RecursiveDescentParser with max_time parameter remains bounded and safer for untrusted inputs.

Description

The NLTK library's SteppingRecursiveDescentParser.parse() method performs an unbounded top-down search on ambiguous or self-embedding grammars without enforcing any time or step limits. This allows an attacker who can influence the grammar and input tokens to cause the parser to consume CPU indefinitely, resulting in a denial of service. The base RecursiveDescentParser enforces a max_time limit, but the stepping subclass overrides this behavior and lacks any timeout mechanism. This vulnerability affects NLTK versions prior to 3.10.4.

References

Community reviews

Loading reviews…