Read the docs

Writable PATH element in NLTK dot2img enables local code execution

Priority HIGH 69CWE-426Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-426.

Summary

NLTK before 3.10.4 resolves the Graphviz dot executable through PATH in nltk.parse.dependencygraph.dot2img, and it runs that executable without the ownership and writability checks applied by spawn_trusted. A local attacker with low privileges who can write to a directory on a POSIX victim's PATH can plant or replace dot, and the code then runs as the victim when dot2img is called or DependencyGraph.repr_svg renders a graph. The weakness is CWE-426 (Untrusted Search Path).

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00184 8th percentileScored 2026-11-16
Fix Fixed nltk (nltk): 3.10.4nltk (PyPI): 3.10.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
nltknltkbefore 3.10.43.10.4Patch availableCNA
—nltk (PyPI)before 3.10.43.10.4Patch availableGHSA-7mxv-7h3q-9324
  • nltk Vendornltk Affected before 3.10.4 Fixed in 3.10.4 Patch available CNA
  • nltk (PyPI) Vendor— Affected before 3.10.4 Fixed in 3.10.4 Patch available GHSA-7mxv-7h3q-9324

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*——nltk
  • cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* Versions — — ·nltk

Remediation

Upgrade nltk to version 3.10.4, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA nltk (nltk) Fixed in 3.10.4
  • Fix · GHSA-7mxv-7h3q-9324 nltk (PyPI) Fixed in 3.10.4 Advisory →

Timeline

  1. 2026-11-13 Threatist record created from CVE-2026-128134
  2. 2026-11-16 CISA SSVC decision points changed
  3. 2026-11-16 Alias added: GHSA-7mxv-7h3q-9324
  4. 2026-11-16 Fix available: PyPI/[email protected] · GHSA-7mxv-7h3q-9324
  5. 2026-11-16 CVSS score added · GHSA-7mxv-7h3q-9324
  6. 2026-11-16 Weakness changed · GHSA-7mxv-7h3q-9324
  7. 2026-11-16 6 new references · GHSA-7mxv-7h3q-9324

References

  • TI-2026-00629 Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading CVSS 3.0CRITICAL 10.0
  • TI-2025-12800 Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution CVSS 3.0CRITICAL 10.0
  • TI-2026-55173 NLTK before 3.10.3 JVM Argument Injection via Per-Call Options CVSS 4.0CRITICAL 9.3
  • TI-2026-55155 NLTK before 3.10.3 Remote Code Execution via Unsafe Pickle Deserialization CVSS 4.0CRITICAL 9.3
  • TI-2026-91241 NLTK denial of service in SteppingRecursiveDescentParser.parse() CVSS 4.0HIGH 8.7
  • TI-2026-91237 NLTK Quadratic-Time Denial of Service via CCG Lexicon fromstring CVSS 4.0HIGH 8.7
See all 57 →

Sources