CVE-2026-128140
NLTK: Downloader cyclic collection indices cause an infinite closure walk
Medium · 6.5Fix available
- CVSS
- 6.5
- EPSS
- 0.40% (p36)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-20
- Product
- nltk nltk
- Aliases
- GHSA-pcm8-fqjx-rvx8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Description
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.
Fixed in
3.10.4
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| PyPI | nltk | >= 3.6.7, < 3.10.4 | 3.10.4 |
| PyPI | nltk | >=3.6.7, <3.10.4 | 3.10.4 |
Sources
- NVD · first seen 15d ago · NVD terms of use
- OSV · first seen 14d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 14d ago · CC-BY 4.0
- CVE List · first seen 15d ago · CVE Terms of Use
References
- https://github.com/nltk/nltk/security/advisories/GHSA-pcm8-fqjx-rvx8 x_refsource_CONFIRM
- https://github.com/nltk/nltk/pull/3767 x_refsource_MISC
- https://github.com/nltk/nltk/commit/b77d329db934711e053520588b22b4ac73539fa2 x_refsource_MISC
- https://github.com/nltk/nltk/releases/tag/v3.10.4 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-128140 other
- https://github.com/advisories/GHSA-pcm8-fqjx-rvx8 other
- https://github.com/nltk/nltk package