VulnWatch by ve1ve2
high 8.5 EPSS 0.18%

CVE-2026-128134: NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Proc…

Source:
NVD CVE API 2.0
Published:
Fetched:
Updated:

https://nvd.nist.gov/vuln/detail/CVE-2026-128134 ↗

CWE-426CWE-427

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. References: https://github.com/nltk/nltk/commit/b002a7288c22db86fd6ca2d9526e3f91d6fda797 https://github.com/nltk/nltk/pull/3887 https://github.com/nltk/nltk/releases/tag/v3.10.4 https://github.com/nltk/nltk/security/advisories/GHSA-7mxv-7h3q-9324 https://github.com/nltk/nltk/security/advisories/GHSA-7mxv-7h3q-9324

Linked vulnerabilities (3)

CVE-2026-128134 high 7.8 EPSS 0.18% (p8) NVDCVE.orgGHSAGHSA
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nltk: nltk: Arbitrary code execution via untrusted search path

CWE: CWE-427, CWE-426Aliases: GHSA-7mxv-7h3q-9324, CVE-2026-78680, GHSA-6hwm-xvph-95vmNVD: Awaiting Analysis
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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

CWE: CWE-426, CWE-427Aliases: CVE-2026-128134, CVE-2026-78680, GHSA-6hwm-xvph-95vm
CVE-2026-78680 high 8.5 EPSS 0.15% (p5) NVDCVE.org
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

NLTK versions before 3.10.3 fail to use validated absolute paths when invoking the Graphviz dot binary in dependencygraph.dot2img and AlignedSent._repr_svg_, allowing attackers to execute arbitrary code by placing a malicious dot binary in the search path or current working directory. Attackers can exploit bare-name binary resolution on Windows via the current working directory or on Unix-like systems via relative PATH entries to execute their binary instead of the legitimate Graphviz tool.

CWE: CWE-426NVD: Awaiting Analysis

Also reported by (1)