CVE-2026-128135
NLTK: ZIP package extraction follows in-root hardlinks and overwrites files outside the NLTK data root
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.
Fixes and workarounds
Fix
nltk (pip): GitHub reports patched versions 3.10.4. Check the advisory for the affected release branch.
Source: GitHub GHSA-wr3g-j6qj-xpghFix
nltk (PyPI): OSV reports a fixed version 3.10.4. Check the advisory for supported release branches.
Source: OSV GHSA-wr3g-j6qj-xpghAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| nltk nltk |
>= 3.9.4, < 3.10.4 (affected) | CNA: GitHub_M |
nltknltk
pip |
>= 3.9.4, <= 3.10.3 (affected, GitHub advisory range) | GitHub GHSA-wr3g-j6qj-xpgh |
nltknltk
PyPI |
3.10.0 (affected, PyPI) 3.10.1 (affected, PyPI) 3.10.2 (affected, PyPI) 3.10.3 (affected, PyPI) 3.9.4 (affected, PyPI) Ecosystem version events: introduced 3.9.4; fixed 3.10.4 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-wr3g-j6qj-xpgh |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.1 high |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | CNA: GitHub_M |
| 3.1 / 7.1 high |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | NVD: [email protected] |
Exploit evidence
- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh
exploit · ADP: CISA-ADP
References
- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpghCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/nltk/nltk/pull/3753CNA: GitHub_M · x_refsource_MISC
- https://github.com/nltk/nltk/commit/0e9898b7615b4ab3b023e868212316a489ece4f0CNA: GitHub_M · x_refsource_MISC
- https://github.com/nltk/nltk/commit/cf12a5e6a439fe1d722acd53d4309911faaaaf78CNA: GitHub_M · x_refsource_MISC
- https://github.com/nltk/nltk/releases/tag/v3.10.4CNA: GitHub_M · x_refsource_MISC
- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpghADP: CISA-ADP · exploit
- https://github.com/nltk/nltk/commit/0e9898b7615b4ab3b023e868212316a489ece4f0[email protected]
- https://github.com/nltk/nltk/commit/cf12a5e6a439fe1d722acd53d4309911faaaaf78[email protected]
- https://github.com/nltk/nltk/pull/3753[email protected]
- https://github.com/nltk/nltk/releases/tag/v3.10.4[email protected]
- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh[email protected]
- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh134c704f-9b21-4f2e-91b3-4a467353bcc0
- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpghGitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-wr3g-j6qj-xpghOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-wr3g-j6qj-xpghOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.