7.5High

CVE-2026-126299NLTK before 3.10.4 Quadratic-Time Denial of Service via CCG Lexicon fromstring

nltk nltk Published: (2 days ago)

Description

NLTK before 3.10.4 contains a denial of service vulnerability in the CCG lexicon parser fromstring that allows remote attackers to exhaust CPU by supplying wide inputs. Attackers can submit lexicon text with long flat bracket bodies or operator chains, triggering quadratic string re-slicing in matchBrackets and augParseCategory that blocks worker threads.

Weakness (CWE): CWE-400

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
nltk nltk < 3.10.4, fixed 3.10.4

References and patches