CVE-2025-14009
HIGH 8.8CVSS 3.1NLTK has a Zip Slip Vulnerability
A critical vulnerability exists in the NLTK downloader component of nltk/nltk, affecting all versions. The _unzip_iter function in nltk/downloader.py uses zipfile.extractall() without performing path validation or security checks. This allows attackers to craft malicious zip packages that, when downloaded and extracted by NLTK, can execute arbitrary code. The vulnerability arises because NLTK assumes all downloaded packages are trusted and extracts them without validation. If a malicious package contains Python files, such as init.py, these files are executed automatically upon import, leading to remote code execution. This issue can result in full system compromise, including file system access, network access, and potential persistence mechanisms.
- Published
- 18 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-7p94-766c-hgjpPYSEC-2026-96
- Sources
- NVDJSONOSV GHSA-7p94-766c-hgjpJSONOSV PYSEC-2026-96JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | CRITICAL 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nltk | nltkcpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* |
< 3.9.3 | 3.9.3 |
| OSV | PyPI | nltk | < 3.9.3 | 3.9.3 |
References
- https://huntr.com/bounties/49ecbc02-054e-4470-b2e0-b267936cc4e4 · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://access.redhat.com/errata/RHSA-2026:10184
- https://access.redhat.com/security/cve/CVE-2025-14009
- https://bugzilla.redhat.com/show_bug.cgi?id=2440724
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14009.json
- https://nvd.nist.gov/vuln/detail/CVE-2025-14009 · ADVISORY
- https://github.com/nltk/nltk/pull/3468 · WEB
- https://github.com/nltk/nltk/commit/1056b323af6462455571302e766b67cf300aea18 · WEB
- https://github.com/nltk/nltk · PACKAGE
- https://github.com/nltk/nltk/blob/4154eb85e832f266660a09286c7e37e308292284/ChangeLog#L1 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-96.yaml · WEB
- https://github.com/advisories/GHSA-7p94-766c-hgjp · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 18 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Feb 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Feb 2026)