CVE Catalog

CVE-2025-14009

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.79%

52th percentile - higher than 52% of all known CVEs

Summary

A critical vulnerability in the NLTK downloader component (nltk/nltk) affects all versions. The _unzip_iter function in nltk/downloader.py uses zipfile.extractall() without path validation, allowing attackers to inject malicious ZIP packages. Upon extraction and import of Python files (e.g., __init__.py), remote code execution occurs.

Risk Assessment

An attacker can gain full system compromise, including file system access, network access, and persistence mechanisms. The risk is critical as the vulnerability requires no authentication and can be exploited remotely.

Recommendation

Immediately update NLTK to a patched version. Until then, avoid downloading and extracting packages from untrusted sources and consider temporarily disabling the downloader functionality.

Other vulnerabilities in NLTK

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS