CVE-2025-14009: nltk Code Injection
Vulnerability summary
CVE-2025-14009 is a critical (CVSS 10.0) Code Injection vulnerability in nltk. EPSS estimates a 1.04% chance of exploitation in the next 30 days, higher than 63.3% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 18-02-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
10 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · PypiEcosystem advisory · calculated10.0CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated10.0CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVDNIST10.0CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
1.04%
Chance of exploitation in the next 30 days
Percentile
63%
Versus all other CVEs
30-day change
+0.23 pp
From 0.80% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Chainguard8 products
- apache-beam-python-3.11-sdk< 2.71.0-r5
- kubeflow-pipelines-visualization-server< 2.16.0-r0
- label-studio< 1.22.0-r6
- nemo< 2.6.2-r3
- open-webui< 0.8.9-r0
Wolfi5 products
- kubeflow-pipelines-visualization-server< 2.16.0-r0
- open-webui< 0.8.9-r0
- py3.11-nltk< 3.9.3-r0
- py3.12-nltk< 3.9.3-r0
- py3.13-nltk< 3.9.3-r0
Debian1 product
- nltkAll versions (No fix recorded) | < 3.9.3-1
Opensuse1 product
- python-nltk&distro=openSUSE Tumbleweed< 3.9.1-3.1
PyPI1 product
- nltk< 3.9.3
Ubuntu1 product
- nltk< 2.0~b9-0ubuntu4.1~esm5 | < 3.1-1ubuntu0.1+esm3 | < 3.2.5-1ubuntu0.1+esm3 | < 3.4.5-2ubuntu0.1~esm3 | < 3.7-1ubuntu0.1~esm1 | < 3.8.1-1ubuntu0.1~esm1 | All versions (No fix recorded) | < 3.9.2-1ubuntu0.1~esm1
7 vendors · 19 products
References
19 links- github.com/nltk/nltkPACKAGE