CVE-2025-14009Nltk · Nltk
Vulnerability data via NVD (ingested)
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.
External references
Search for exposed instances
Shodan + Censys queries derived from NVD's CPE data. The vuln tag catches assets Shodan has explicitly linked to this CVE; the product / banner fingerprints find exposed instances even when the vuln tag was never applied (which is common).
vuln:CVE-2025-14009product:"Nltk Nltk"http.html:"Nltk"More intel sources (5)
vuln:CVE-2025-14009vulnerabilities.cve_id: CVE-2025-14009CVE-2025-14009CVE-2025-14009"CVE-2025-14009" exploit -site:nvd.nist.gov