CVE-2025-14009
Last modified
CVE-2025-14009 is a critical-severity vulnerability rated 10/10 on the CVSS scale. 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. EPSS estimates a 0.71% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nltk | Nltk | < 3.9.3 |
References
- https://huntr.com/bounties/49ecbc02-054e-4470-b2e0-b267936cc4e4Exploit, Third Party Advisory
- https://huntr.com/bounties/49ecbc02-054e-4470-b2e0-b267936cc4e4Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-14009?
How severe is CVE-2025-14009?
How do I fix CVE-2025-14009?
Are you affected by CVE-2025-14009?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
