NLTK denial of service in CCG lexicon parsing
nltk
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nltk PyPI |
|
|
Original 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.
From the CVE record · VulnCheck