Skip to content
OpenAdvisories
High · 7.5 CVE-2026-126303 EUVD-2026-125218GHSA-4hvg-fv5c-9936GHSA-8fx7-8jr8-84rv

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

Published Nov 13, 2026 · Updated Nov 13, 2026 · Assigned by VulnCheck

Description

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

VendorProductAffectedFixed
nltk nltk < 3.10.4 3.10.4

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nltk < 3.10.4 3.10.4 GHSA-8fx7-8jr8-84rv

References