CVE-2026-78680
Received Received - Intake

NLTK Path Traversal Allows Arbitrary Code Execution

Vulnerability report for CVE-2026-78680, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nltk nltk to 3.10.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-426 The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

NLTK versions before 3.10.3 are vulnerable to arbitrary code execution due to improper handling of the Graphviz dot binary. The library fails to use validated absolute paths when invoking the dot binary in two functions, allowing attackers to place a malicious dot binary in the search path or current working directory. On Windows, this can be done via the current working directory, while on Unix-like systems, attackers can manipulate relative PATH entries.

Detection Guidance

Check NLTK version with pip show nltk. If version is below 3.10.3, the system is vulnerable. Inspect directories in PATH for unexpected dot binaries. On Unix, run which dot to verify the binary location. On Windows, check current directory and PATH entries for suspicious dot.exe files.

Impact Analysis

If you use NLTK versions before 3.10.3, an attacker could execute arbitrary code on your system by tricking the library into running a malicious dot binary instead of the legitimate Graphviz tool. This could lead to unauthorized access, data theft, or further compromise of your system.

Compliance Impact

This vulnerability could lead to unauthorized code execution, potentially resulting in data breaches or loss of sensitive information. Such incidents may violate compliance requirements under GDPR, HIPAA, or other regulations, leading to legal penalties, reputational damage, and loss of trust.

Mitigation Strategies

Upgrade NLTK to version 3.10.3 or later using pip install --upgrade nltk. Remove any untrusted dot binaries from current directory and PATH. Avoid running NLTK functions in untrusted directories until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-78680. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart