CVE-2026-128135
NLTK: ZIP package extraction follows in-root hardlinks and overwrites files outside the NLTK data root
High · 7.1Fix available
- CVSS
- 7.1
- EPSS
- 0.22% (p14)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-24
- Product
- nltk nltk
- Aliases
- GHSA-wr3g-j6qj-xpgh
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/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.9.4 to 3.10.3, NLTK ZIP package extraction can write through an existing in-root hardlink whose other link points outside the NLTK data root. A local attacker who can prepare the extraction target can cause a package member write to overwrite an out-of-root file, violating the pathsec containment boundary and affecting integrity and availability. This issues is fixed in version 3.10.4.
Fixed in
3.10.4
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| PyPI | nltk | >= 3.9.4, <= 3.10.3 | 3.10.4 |
| PyPI | nltk | >=3.9.4, <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-wr3g-j6qj-xpgh x_refsource_CONFIRM
- https://github.com/nltk/nltk/pull/3753 x_refsource_MISC
- https://github.com/nltk/nltk/commit/0e9898b7615b4ab3b023e868212316a489ece4f0 x_refsource_MISC
- https://github.com/nltk/nltk/commit/cf12a5e6a439fe1d722acd53d4309911faaaaf78 x_refsource_MISC
- https://github.com/nltk/nltk/releases/tag/v3.10.4 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-128135 other
- https://github.com/advisories/GHSA-wr3g-j6qj-xpgh other
- https://github.com/nltk/nltk package
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128135.json advisory