Hardlink following in NLTK ZIP extraction overwrites files outside data root
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
NLTK, a Python toolkit for natural language processing, is affected from 3.9.4 before 3.10.4. 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 make a package member write overwrite a file outside the data root, affecting integrity and availability. The flaw relates to improper link resolution (CWE-59).
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nltk | nltk | 3.9.4 to before 3.10.4 | 3.10.4 | Patch available | CNA |
| — | nltk (PyPI) | 3.9.4 to before 3.10.4 | 3.10.4 | Patch available | GHSA-wr3g-j6qj-xpgh |
- nltk Vendornltk Affected 3.9.4 to before 3.10.4 Fixed in 3.10.4 Patch available CNA
- nltk (PyPI) Vendor— Affected 3.9.4 to before 3.10.4 Fixed in 3.10.4 Patch available GHSA-wr3g-j6qj-xpgh
Remediation
Upgrade NLTK to version 3.10.4, which fixes this flaw in both the nltk vendor product and the PyPI package nltk.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · CNA nltk (nltk) Fixed in 3.10.4
- Fix · GHSA-wr3g-j6qj-xpgh nltk (PyPI) Fixed in 3.10.4 Advisory →
Timeline
- 2026-11-19 Threatist record created from CVE-2026-128135
- 2026-11-20 Alias added: GHSA-wr3g-j6qj-xpgh
- 2026-11-20 Fix available: PyPI/[email protected] · GHSA-wr3g-j6qj-xpgh
- 2026-11-20 CVSS score added · GHSA-wr3g-j6qj-xpgh
- 2026-11-20 Weakness changed · GHSA-wr3g-j6qj-xpgh
- 2026-11-20 7 new references · GHSA-wr3g-j6qj-xpgh
- 2026-11-24 CISA SSVC decision points changed
References
Other 6
- 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
- https://github.com/nltk/nltk
More nltk vulnerabilities
- TI-2026-95059 NLTK incomplete fix allows JVM sandbox bypass via launcher tokens CVSS 3.1CRITICAL 9.8
- TI-2026-00629 Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading CVSS 3.0CRITICAL 10.0
- TI-2025-12800 Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution CVSS 3.0CRITICAL 10.0
- TI-2026-55173 NLTK before 3.10.3 JVM Argument Injection via Per-Call Options CVSS 4.0CRITICAL 9.3
- TI-2026-55155 NLTK before 3.10.3 Remote Code Execution via Unsafe Pickle Deserialization CVSS 4.0CRITICAL 9.3
- TI-2026-91242 Symlink escape in NLTK YCOECorpusReader lets attackers read files CVSS 4.0HIGH 8.7
Sources
- CVE-2026-128135 · CVE Program
- CVE-2026-128135 · NVD
- FIRST EPSS
- GHSA-wr3g-j6qj-xpgh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences