Writable PATH element in NLTK dot2img enables local code execution
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nltk | nltk | before 3.10.4 | 3.10.4 | Patch available | CNA |
| — | nltk (PyPI) | before 3.10.4 | 3.10.4 | Patch available | GHSA-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
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
- 2026-11-13 Threatist record created from CVE-2026-128134
- 2026-11-16 CISA SSVC decision points changed
- 2026-11-16 Alias added: GHSA-7mxv-7h3q-9324
- 2026-11-16 Fix available: PyPI/[email protected] · GHSA-7mxv-7h3q-9324
- 2026-11-16 CVSS score added · GHSA-7mxv-7h3q-9324
- 2026-11-16 Weakness changed · GHSA-7mxv-7h3q-9324
- 2026-11-16 6 new references · GHSA-7mxv-7h3q-9324
References
More nltk vulnerabilities
- 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
Sources
- CVE-2026-128134 · CVE Program
- CVE-2026-128134 · NVD
- FIRST EPSS
- GHSA-7mxv-7h3q-9324 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences