CVE-2026-128140: NLTK: Downloader cyclic collection indices cause an infinite closure walk
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.6.7 until 3.10.4, nltk.downloader follows collection membership without tracking already visited collection nodes. A self-referencing or mutually referencing collection index can therefore make the package-closure walk loop indefinitely while its queue and memory usage grow, denying service when a victim processes the attacker-influenced index. This issue is fixed in version 3.10.4.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
NLTKto a version that resolves this vulnerability.Fixed in 3.10.4
Event History
Frequently Asked Questions
Who is exposed to this denial-of-service issue?
Applications using NLTK Downloader versions from 3.6.7 through 3.10.3 are exposed if they process an attacker-influenced collection index. The affected operation is the downloader's package-closure walk for collection membership.
What must an attacker provide to trigger the issue?
The attacker needs to cause the victim to process a collection index containing a self-reference or mutual references between collections. No authentication is required, but user interaction is required according to the supplied CVSS vector.
How can I remediate the issue?
Upgrade NLTK to version 3.10.4, which fixes the collection traversal behavior. Until upgrading is possible, avoid processing untrusted or attacker-influenced collection indices.
What is the impact if exploitation succeeds?
The downloader can loop indefinitely while its queue and memory consumption grow. This can deny service to the process handling the malicious collection index.