NLTK: ZIP package extraction follows in-root hardlinks and overwrites files outside the NLTK data root
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 19, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 12, 2026
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.
| Product | Versions |
|---|---|
| nltk nltk | >= 3.9.4, < 3.10.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.1 High | GitHub_M |
Weaknesses
References
- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh
- https://github.com/nltk/nltk/pull/3753
- https://github.com/nltk/nltk/commit/0e9898b7615b4ab3b023e868212316a489ece4f0
- https://github.com/nltk/nltk/commit/cf12a5e6a439fe1d722acd53d4309911faaaaf78
- https://github.com/nltk/nltk/releases/tag/v3.10.4
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.