NLTK fixes downloader denial-of-service flaw in version 3.10.4
- NLTK
- denial of service
- downloader

Infinite loop flaw triggered by cyclic collection indices
Issue resolved in NLTK version 3.10.4
Affects all primary downloader operations
NLTK developers fixed a denial-of-service vulnerability in the NLTK Downloader in version 3.10.4. The flaw could leave downloader operations stuck while consuming increasing amounts of memory and CPU.
The vulnerability affects NLTK versions 3.6.7 and later, but earlier than 3.10.4. It occurs when the downloader processes a collection index containing self-referencing or mutually referencing collections.
The downloader’s index-update function calculates package relationships by walking through collections without tracking which ones it has already visited. As a result, a cycle can make the walk continue indefinitely and block operations such as downloading, listing packages or checking information.
Key terms explained
- NLTK
NLTK is an open-source project that provides libraries for natural language processing in Python.
- denial-of-service
A denial-of-service attack prevents authorized users from accessing services or systems by overwhelming them with traffic or resource-heavy requests.
Think of it this way. This is like a crowd of people blocking the entrance to a store so that actual customers cannot get inside to shop.




