Patch Ticker
EnglishEN
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

All Incidents of 2026-11-13

Distribution packages (2) (every link below opens in a new tab)

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)

Show 8 more