home / blog

2026-11-19 · high

CVE-2026-128134: Code execution vulnerability in NLTK

NLTK is vulnerable to local code execution: exploit leverages unsafe resolution of Graphviz executable via PATH.

CVE-2026-128134: Code execution vulnerability in NLTK

CVE-2026-128134 affects NLTK (Natural Language Toolkit), a suite of open source Python modules for Natural Language Processing. The issue is in the nltk.parse.dependencygraph.dot2img function which resolves the Graphviz executable through PATH but invokes it without routing through spawn_trusted. This allows a local low-privileged attacker who can write to a directory on a victim's PATH to plant or replace the dot executable, executing code when dot2img is called directly or DependencyGraph.repr_svg renders a graph.

The vulnerability severity is rated as high (CVSS 7.8) and is confirmed by official sources. It is a residual issue after CVE-2026-78680, which blocked the bare-name vector but not the writable absolute PATH element. Signals on GitHub indicate the existence of public repositories claiming to contain exploits for this vulnerability, though they remain unverified.

For defense, it is essential to update NLTK to version 3.10.4 or later that fixes this issue. Administrators should verify if the library is used in their Python environments and apply the update as soon as possible. In environments where updating isn't immediately possible, consider the limited attack scope (requires local access with write capabilities to directories in the victim's PATH) as a temporary mitigating factor.

At a glance

What
Vulnerability in NLTK enabling local code execution via PATH hijacking
Severity
High (CVSS 7.8)
Affected versions
Prior to 3.10.4
Fix
Update to version 3.10.4 or later
Status
Officially published on 11/13/2026
Action
Update the library to version 3.10.4 or later

Sources: NVD, CVE-2026-128134

← All articles