Elevated
NLTK dot2img flaw in executable lookup allows local code execution
CVE-2026-126304 and 10 more
Someone who can plant files on your PC could hack it through a Python language tool.
- CVE
- CVE-2026-126304 and 10 more
- Score
- CVSS 8.7 · CVE-2026-126304
- Public date
- 2026-10-26
- First seen
8.7
Products
Disclosed together nltk
Mitigation
Update NLTK to 3.10.4 or later. The fixed version is 3.10.4.
Summary
In NLTK before 3.10.4, a local low-privileged attacker who can write to a directory on a POSIX system's PATH can plant a dot program that runs as the victim when dot2img is called. The same release also fixes denial-of-service flaws that pin CPU cores and a path-handling flaw that reads files outside the data sandbox.
Exploit code is public
Affected when
- CVE-2026-128134 writable directory on the PATH of a POSIX system
- CVE-2026-128134 dot2img or DependencyGraph.repr_svg called
- CVE-2026-126303 crafted grammar and short input passed to SteppingRecursiveDescentParser.parse()
- CVE-2026-126304 attacker-controlled YCOE corpus loaded (3.10.0 or later, before 3.10.4)
- CVE-2026-126299 untrusted CCG lexicon text parsed with fromstring
- CVE-2026-126297 crafted CoNLL SRL corpus read by ConllCorpusReader
- CVE-2026-126298 untrusted tree converted with Tree.chomsky_normal_form
- CVE-2026-126295 model paths from untrusted input used by BllipParser (3.10.0 or later, before 3.10.4)
- CVE-2026-126300 untrusted text span-tokenized by TreebankWordTokenizer (3.2.5 or later, before 3.10.4)
- CVE-2026-126301 untrusted tokens tokenized by LegalitySyllableTokenizer (3.6 or later, before 3.10.4)
- CVE-2026-126296 untrusted tab_dir passed to save_maxent_params or load_maxent_params
- CVE-2026-126302 attacker able to write into a trusted NLTK data root (3.9.4 or later, before 3.10.4)
1 other Incident of this product in the last 30 days
Incidents by product: nltk
Other recent Incidents of nltk
Distribution packages (2) (every link below opens in a new tab)
- Debian 13 (trixie)nltk · not fixed yet CVE-2026-128134
- Debian 12 (bookworm)nltk · not fixed yet CVE-2026-128134
Sources: Debian Security Tracker
11 CVEs (every link below opens in a new tab)
Read the advisory · github.com (opens in a new tab)
Each of the 11 CVEs (every link below opens in a new tab)
- CVE-2026-126304symlinks let a YCOE corpus read file content outside its folder CVSS 8.7 CVE-2026-126304 advisory · CVE-2026-126304 write-up
- CVE-2026-128134plant a dot program in a writable PATH folder to run code as the victim CVSS 7.8 CVE-2026-128134 advisory
- CVE-2026-126303a crafted grammar and short input make the stepping parser pin a CPU core CVSS 7.5 CVE-2026-126303 advisory · CVE-2026-126303 write-up
Show 8 more
- CVE-2026-126299long bracket input slows CCG lexicon parsing until work stalls CVSS 7.5 CVE-2026-126299 advisory · CVE-2026-126299 write-up
- CVE-2026-126297a crafted CoNLL SRL corpus pins a CPU core for minutes CVSS 7.5 CVE-2026-126297 advisory · CVE-2026-126297 write-up
- CVE-2026-126298a wide tree input makes chomsky_normal_form use CPU for tens of seconds CVSS 7.5 CVE-2026-126298 advisory · CVE-2026-126298 write-up
- CVE-2026-126300long runs of double quotes make tokenizing consume a CPU core CVSS 6.9 CVE-2026-126300 advisory · CVE-2026-126300 write-up
- CVE-2026-126295model paths make BllipParser read sensitive files or block on devices CVSS 6.8 CVE-2026-126295 advisory · CVE-2026-126295 write-up
- CVE-2026-126296tab_dir can read or overwrite model files outside allowed data roots CVSS 6.3 CVE-2026-126296 advisory · CVE-2026-126296 write-up
- CVE-2026-126301a long all-vowel token makes syllable splitting do excessive work CVSS 5.3 CVE-2026-126301 advisory · CVE-2026-126301 write-up
- CVE-2026-126302a planted symlink reads SQLite databases outside the sandbox CVSS 3.3 CVE-2026-126302 advisory · CVE-2026-126302 write-up
- Repository: LLCForge/CVE-2026-128134 (opens in a new tab)
- Repository: cveForge/CVE-2026-128134 (opens in a new tab)