PT-2026-20477 · Pypi+2 · Nltk+2
Published
2025-01-01
·
Updated
2026-06-03
·
CVE-2025-14009
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
nltk/nltk (affected versions not specified)
Description
A critical issue exists in the NLTK downloader component. The
unzip iter function within nltk/downloader.py utilizes zipfile.extractall() without validating file paths or implementing security checks. This allows attackers to create malicious zip packages that, when downloaded and extracted by NLTK, can execute arbitrary code. The vulnerability occurs because NLTK trusts all downloaded packages and extracts them without validation. If a malicious package contains Python files, such as init .py, these files are automatically executed upon import, potentially leading to remote code execution and full system compromise, including file system access, network access, and potential persistence.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
RCE
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linuxmint
Ubuntu
Nltk