CVE-2026-128134 NLTK dot2img runs Graphviz 'dot' without the trusted-exec chokepoint, enabling local code execution via a writable PATH element

High 7.8 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-128134?

CVE-2026-128134 is a high-severity vulnerability in nltk, published on 13 Nov 2026.

Official description

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.4, nltk.parse.dependencygraph.dot2img resolves the Graphviz dot executable through PATH but invokes the resulting absolute executable without routing through spawn_trusted, so resolve_trusted_executable ownership and writability validation and safe_env loader environment scrubbing do not run. A local low-privileged attacker who can write to a directory on a POSIX victim's PATH can plant or replace dot, and code executes as the victim when dot2img is called directly or DependencyGraph.repr_svg renders a graph. The current-working-directory-only bare-name vector is blocked and is not this vulnerability; this issue is the residual writable absolute PATH element bypass after CVE-2026-78680. This issue is fixed in version 3.10.4.

Weakness: CWE-427, CWE-426

Which versions are affected by CVE-2026-128134?

1 open source package ship an affected version, including nltk.

PackageAffectedFixed in
nltk PyPI
pkg:pypi/nltk
All versions3.10.4
Status by vendor (1)
WhoReleaseStatusPackages
Upstreamfixednltk (3.10.4)
pkg:pypi/nltk

How do I fix CVE-2026-128134?

Upgrade nltk to 3.10.4 or later.

Is CVE-2026-128134 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-128134 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as DEBIAN-CVE-2026-128134, GHSA-7mxv-7h3q-9324, UBUNTU-CVE-2026-128134.

Is CVE-2026-128134 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free