CVE-2026-128134
NLTK local code execution in dot2img via untrusted PATH
A low-privileged local user who can write to a PATH directory can run code as the victim via dot2img.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-128134 divulgada · CVSS 7.8 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación PoC pública | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: PoC-in-GitHub | Registro visto por primera vez en PoC-in-GitHub | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The NLTK (Natural Language Toolkit) Python library is affected: its `dot2img` function and `DependencyGraph.repr_svg` method run the Graphviz `dot` program without the library's trusted-execution checks. A local attacker with low privileges who can write to a directory on a POSIX victim's PATH can plant or replace `dot`, and that code then runs as the victim when `dot2img` is called or a graph is rendered with `repr_svg`.
Affects NLTK 3.10.3 and earlier on POSIX hosts where a group- or world-writable directory appears on PATH. Fixed in NLTK 3.10.4.
Descripción original del registro (GitHub_M)
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.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
nltk |
Corregida | 3.10.4 | — | — |
3.10.4Arsenal público
Ver los 1 repositorios de GitHub
Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.
https://github.com/nltk/nltk/security/advisories/GHSA-7mxv-7h3q-9324https://github.com/LLCForge/CVE-2026-128134https://github.com/nltk/nltk/pull/3887https://github.com/nltk/nltk/commit/b002a7288c22db86fd6ca2d9526e3f91d6fda797https://github.com/nltk/nltk/releases/tag/v3.10.4Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
