CVE-2026-78680: NLTK before 3.10.3 Arbitrary Code Execution via Graphviz dot Binary

Published Aug 25, 2026
·
Updated

NLTK versions before 3.10.3 fail to use validated absolute paths when invoking the Graphviz dot binary in dependencygraph.dot2img and AlignedSent.reprsvg, 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.

Affected Software

1 affected component
NLTK<3.10.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nltk to a version that resolves this vulnerability.

    Fixed in 3.10.3
  2. Compensating control

    Mitigate by ensuring a malicious Graphviz dot binary cannot be found via relative PATH entries or the current working directory (e.g., remove/avoid relative PATH entries and prevent execution from the working directory / constrain PATH) so the legitimate Graphviz dot binary is used.

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which environments are exposed to this issue?

NLTK installations before 3.10.3 are exposed when code invokes dependencygraph.dot2img or AlignedSent._repr_svg_ and resolves the Graphviz dot executable by bare name. On Windows, a malicious dot binary in the current working directory can be selected; on Unix-like systems, relative entries in PATH can cause the same outcome.

2

What does an attacker need to exploit it?

An attacker needs the ability to place a malicious executable named dot in a location searched before the legitimate Graphviz binary, such as the current working directory on Windows or a relative PATH location on Unix-like systems. Exploitation also requires the affected NLTK functionality to invoke dot.

3

What is the immediate mitigation if upgrading is not possible?

Avoid invoking the affected NLTK methods in untrusted or attacker-controlled working directories, and ensure PATH does not contain relative entries. Ensure the dot executable resolved by the process is the legitimate Graphviz binary rather than an attacker-controlled file.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203