Vulnerability · Published Feb 18, 2026 · Assigned by @huntr_ai
CVE-2025-14009Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution
High 8.8
In plain English
A high-severity code injection in nltk/nltk from nltk. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | py3-nltk | 3.9.3-r0 | ALPINE-CVE-2025-14009 |
| Debian:12 | nltk | no fix listed | DEBIAN-CVE-2025-14009 |
| Debian:13 | nltk | no fix listed | DEBIAN-CVE-2025-14009 |
| Debian:14 | nltk | 3.9.3-1 | DEBIAN-CVE-2025-14009 |
| PyPI | nltk | 3.9.3 | PYSEC-2026-96 |
| PyPI | nltk | 3.9.3 | GHSA-7p94-766c-hgjp |
| Ubuntu:25.10 | nltk | no fix listed | UBUNTU-CVE-2025-14009 |
| Ubuntu:26.10 | nltk | no fix listed | UBUNTU-CVE-2025-14009 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://huntr.com/bounties/49ecbc02-054e-4470-b2e0-b267936cc4e4
- https://access.redhat.com/security/cve/CVE-2025-14009 vdb-entry, x_refsource_REDHAT
- RHBZ#2440724 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14009.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:10184 vendor-advisory, x_refsource_REDHAT