CVE Catalog

CVE-2026-12259

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.10%

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

Summary

In nltk version 3.9.4, the `nltk.downloader.Downloader._download_package()` function writes downloaded package bytes to disk and may extract them before enforcing SHA-256 or MD5 checksum validation. This allows an attacker to tamper with the package response body through a compromised mirror, malicious proxy, or other source-substitution condition, leading to the installation of attacker-controlled package bytes.

Risk Assessment

The risk is the installation of malicious packages that may be trusted by downstream users or applications, potentially leading to code execution or data theft.

Recommendation

It is recommended to update nltk to a version where checksum validation is enforced before extraction, and to use trusted mirrors.

Other vulnerabilities in nltk

See all
Original NVD description (English source)

In nltk version 3.9.4, the `nltk.downloader.Downloader._download_package()` function writes downloaded package bytes to disk and may extract them before enforcing SHA-256 or MD5 checksum validation. This allows an attacker to tamper with the package response body for `info.url` through a compromised mirror, malicious proxy, or other source-substitution condition, leading to the installation of attacker-controlled package bytes. The vulnerability can result in malicious corpus or model content being trusted by downstream users or applications.

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