---
id: "CVE-2026-128134"
page: "https://infrastack.ai/live/CVE-2026-128134"
kind: "vulnerability"
aliases: ["CVE-2026-128134"]
title: "NLTK: Graphviz path lookup lets local user run code as victim"
severity: "high"
cvss: 7.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["graphviz", "nltk", "package", "posix", "python"]
not_affected_if: ["nltk-3.10.4-or-later", "no-graphviz-rendering", "no-untrusted-local-users"]
published_at: "2026-11-13T23:17:17+00:00"
first_seen_at: "2026-11-13T23:35:10+00:00"
updated_at: "2026-11-13T23:37:00+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-128134", "first_seen_at": "2026-11-13T23:35:10+00:00"}]
exploit_sources: []
---

# NLTK: Graphviz path lookup lets local user run code as victim

Link for people: https://infrastack.ai/live/CVE-2026-128134 (this .md is for agents)

NLTK's dependency graph renderer finds the Graphviz dot program through the PATH variable and runs it without its trusted-executable checks. A local user who can write to a PATH directory on a POSIX system can plant a fake dot program that runs as the victim when dot2img or DependencyGraph.repr_svg is called.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed NLTK version with `python -c "import nltk; print(nltk.__version__)"`, and treat any version below `3.10.4` as affected.
- Look for writable directories on the PATH of hosts that run NLTK, for example with `echo $PATH` and `ls -ld` on each entry.

## Fix

- NLTK: upgrade to `3.10.4`.

## Timeline

- 2026-11-13T23:35:10+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-128134

## Documents

- [advisory] Vendor advisory: github.com https://github.com/nltk/nltk/security/advisories/GHSA-7mxv-7h3q-9324
- [fix] Patch: github.com https://github.com/nltk/nltk/commit/b002a7288c22db86fd6ca2d9526e3f91d6fda797
- [fix] Release: github.com https://github.com/nltk/nltk/releases/tag/v3.10.4

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
