Read the docs

Hardlink following in NLTK ZIP extraction overwrites files outside data root

Priority MEDIUM 64CWE-59Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00167 3rd percentileScored 2026-11-30
Fix Fixed nltk (nltk): 3.10.4nltk (PyPI): 3.10.4

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

VendorProductAffected versionsFixed inStatusSource
nltknltk3.9.4 to before 3.10.43.10.4Patch availableCNA
—nltk (PyPI)3.9.4 to before 3.10.43.10.4Patch availableGHSA-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

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*——nltk
  • cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* Versions — — ·nltk

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

  1. 2026-11-19 Threatist record created from CVE-2026-128135
  2. 2026-11-20 Alias added: GHSA-wr3g-j6qj-xpgh
  3. 2026-11-20 Fix available: PyPI/[email protected] · GHSA-wr3g-j6qj-xpgh
  4. 2026-11-20 CVSS score added · GHSA-wr3g-j6qj-xpgh
  5. 2026-11-20 Weakness changed · GHSA-wr3g-j6qj-xpgh
  6. 2026-11-20 7 new references · GHSA-wr3g-j6qj-xpgh
  7. 2026-11-24 CISA SSVC decision points changed

References

  • 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
See all 77 →

Sources