Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-12259: In nltk version 3.9.4, the `nltk.downloader.Downloader._download_package()` function writes downloaded package

23
Routine
MEDIUM 6.5DOWNGRADE

CVE-2026-12259 is a medium-severity flaw (CVSS 6.5) affecting nltk. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • No elevated risk signals yet

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score6.5 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.1% (top 99%)
CISA exploited listNo
WeaknessCWE-494
Published2026-08-03
Last modified2026-10-23
Publisher (CNA): huntr.dev · Vendor: nltk

Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

nltk nltk DOWNGRADE
Affected: 3.9.4
Fixed in: no fixed release known
Safe to downgrade to: a release before 3.9.4
1. Check installed version
apt-cache policy nltk || rpm -q nltk || nltk --version
2. No fixed release: DOWNGRADE to a release before 3.9.4 (Debian / Ubuntu)
apt-cache madison nltk sudo apt install nltk=<VERSION_BEFORE_3.9.4> sudo apt-mark hold nltk
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list nltk sudo dnf downgrade nltk-<VERSION_BEFORE_3.9.4> sudo dnf versionlock add nltk
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-12259?

nltk: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2026-12259 being exploited?

CVE-2026-12259 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-12259 affect?

CVE-2026-12259 affects nltk. Severity is medium (CVSS 6.5). 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 th

How urgent is CVE-2026-12259?

Priority 23/100. No elevated risk signals yet.

Related CVEs

References

← Back to latest CVEs