Recursion Vulnerability in NLTK's CCG Lexicon Parser
CVE-2026-129224
5.3MEDIUM
What is CVE-2026-129224?
The NLTK (Natural Language Toolkit) contains a vulnerability in its CCG lexicon parser, where the matchBrackets and augParseCategory functions can lead to infinite recursion. This occurs when an attacker supplies a lexicon string with excessive nested parentheses, causing a RecursionError that may interrupt the parsing process. This issue has been resolved in version 3.10.4, ensuring that the parser appropriately handles nested categories without risk of crashing.
Affected Version(s)
nltk < 3.10.4
