{"id":"CVE-2026-12259","published":"2026-08-03T07:09:35Z","modified":"2026-08-03T14:59:01Z","title":"Improper Input Validation in nltk/nltk","vendor":"nltk","product":"nltk/nltk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00101,"percentile":0.00914,"provenance":"source"},"cwes":[{"id":"CWE-494","name":"Download of Code Without Integrity Check"}],"references":[{"url":"https://huntr.com/bounties/659ccf6d-12d4-4d4a-84c0-078633c35a5d","tags":[]}],"priority":{"score":3.9,"factors":[{"name":"EPSS percentile","points":0.18},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"nltk","affectedVersions":[{"vendor":"nltk","product":"nltk/nltk","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-03T14:55:19.698104Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nltk","vulnerableRanges":["<3.9.3","<=3.9.4"],"patched":["3.9.3"],"from":["GHSA-5wp5-5229-5g6q","PYSEC-2026-3729","PYSEC-2026-4318"],"provenance":"source"}],"summary":{"text":"The nltk/nltk product's downloader component, specifically the nltk.downloader.Downloader._download_package() function in version 3.9.4, writes downloaded package bytes to disk and may extract them before verifying SHA-256 or MD5 checksums. An attacker who can substitute the package source, such as through a compromised mirror or malicious proxy, can get attacker-controlled package bytes installed, which requires a user to initiate the download and a high-complexity source-substitution condition rather than direct network access alone.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:59Z"},"euvd":{"id":"EUVD-2026-52226","exploited":false,"provenance":"source"}}