Read the docs
TI-2026-10543 Aliases CVE-2026-12259GHSA-5wp5-5229-5g6q

Improper Input Validation in nltk/nltk

Priority LOW 28CWE-494Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
None · High · None
Fix status
Partial Red Hat: 5 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-494.

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 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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00101 0th percentileScored 2026-11-07
Fix Partial nltk (PyPI): 3.9.3Red Hat: 5 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
nltknltk/nltkup to latest—No fix listedCNA
—nltk (PyPI)before 3.9.33.9.3Patch availableGHSA-5wp5-5229-5g6q
  • nltk/nltk Vendornltk Affected up to latest Fixed in — No fix listed CNA
  • nltk (PyPI) Vendor— Affected before 3.9.3 Fixed in 3.9.3 Patch available GHSA-5wp5-5229-5g6q

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:nltk:nltk:3.9.4:*:*:*:*:*:*:*3.9.4Vulnerablenltk
  • cpe:2.3:a:nltk:nltk:3.9.4:*:*:*:*:*:*:* Versions 3.9.4 Vulnerable ·nltk

Remediation

  • Fix · GHSA-5wp5-5229-5g6q nltk (PyPI) Fixed in 3.9.3 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Exploit IntelligenceAffectedNo fix planned: Out of support scope
Lightspeed CoreAffectedNo fix yet: Fix deferred
OpenShift LightspeedAffectedNo fix yet: Fix deferred
Red Hat Ansible Automation Platform 2AffectedNo fix planned: Out of support scope
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-12259
  2. 2026-10-03 Alias added: GHSA-5wp5-5229-5g6q
  3. 2026-10-16 CVSS score added · NVD

References

  • TI-2026-00629 Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading CVSS 3.0CRITICAL 10.0
  • TI-2025-12800 Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution CVSS 3.0CRITICAL 10.0
  • TI-2026-55173 NLTK before 3.10.3 JVM Argument Injection via Per-Call Options CVSS 4.0CRITICAL 9.3
  • TI-2026-55155 NLTK before 3.10.3 Remote Code Execution via Unsafe Pickle Deserialization CVSS 4.0CRITICAL 9.3
  • TI-2026-56370 nltk PorterStemmer before 3.10.3 Quadratic-time DoS CVSS 4.0HIGH 8.7
  • TI-2026-55172 NLTK 3.10.2 Path Traversal via corpus-reader constructors CVSS 4.0HIGH 8.8
See all 41 →

Sources