CVE-2026-12259
nltk: nltk: Installation of attacker-controlled packages due to improper checksum validation
Overview
Description
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Weakness: CWE-494
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | nltk | <3.9.3 | 3.9.3 |
Open a package to see all its vulnerabilities.
Operating systems · 5 fixes
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nltk | affected |
| 12 | nltk | affected |
| 13 | nltk | affected |
| 14 | nltk | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nltk | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-12259
- github.com https://github.com/nltk/nltk
- github.com https://github.com/nltk/nltk/commit/0e26734a61094b628d93e26dc18dd7302567ac46
- github.com https://github.com/nltk/nltk/pull/3449
- github.com https://github.com/nltk/nltk/releases/tag/3.9.3
- github.com https://github.com/nltk/nltk/security/advisories/GHSA-5wp5-5229-5g6q
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3729.yaml
- huntr.com https://huntr.com/bounties/659ccf6d-12d4-4d4a-84c0-078633c35a5d
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-12259
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-12259
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.