NLTK fixes denial-of-service flaw in CCG lexicon parser
- NLTK
- denial of service
- RecursionError

Deeply nested category input caused denial of service
Issue addressed in NLTK version 3.10.4
NLTK fixed an uncontrolled-recursion vulnerability in its combinatory categorial grammar (CCG) lexicon parser. When the parser handled an untrusted lexicon string containing deeply nested categories, it could raise an unhandled RecursionError and terminate the affected parse operation or request worker.
The vulnerability, classified as CWE-674, affects NLTK versions up to and including 3.10.3. The issue is fixed in NLTK version 3.10.4.
The flaw does not affect application confidentiality or integrity. The RecursionError is raised by Python and is catchable; the reported impact is limited to the affected parsing operation or worker.
Key terms explained
- Denial of Service
A denial of service attack aims to make a system or network unavailable to its intended users. It typically involves overwhelming a target with excessive traffic or resource-consuming requests.
Think of it this way. This is like a single person blocking the entrance to a store so that no real customers can get inside.




