llamaCVEVulnerability Intelligence
/
virtualenv

CVE-2026-113776

virtualenv activation scripts run code from a path that contains a placeholder name

Specific setups onlyParche disponibleOS command injection
Descargar PNG JSON
CVSS 3.1
7.8
Alta
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -19 d de la divulgación
Exposición29 dDesde la divulgación, 20 oct 2026, 5:03 p. m.
Detección1 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Parche 21.14.2
Monitoreo
Detectada
Fuente: NIST NVD
Verificada
1 oct 26
20 oct 26
22 oct 26
28 oct 26
18 nov 26
19 nov 26
1 oct 26
14 oct 26
26 oct 26
7 nov 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 21.14.2 virtualenv · -19 d desde divulgación
Divulgación Publicada CVE-2026-113776 divulgada · CVSS 7.8 (CNA)
Monitoreo Detectada Ingresó al índice
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Verificada Última verificación contra las fuentes
Resumen

virtualenv is a tool for creating isolated virtual python environments. From 20.26.6 until 21.14.2, ViaTemplateActivator.instantiate_template() replaces placeholders one key at a time across the complete activation template, so trigger names such as __VIRTUAL_NAME__, __VIRTUAL_ENV__, or __VIRTUAL_PROMPT__ inside an already substituted and quoted environment path or prompt can be replaced during a later pass. The later value's quoting can close the earlier literal and execute the remaining path when a user activates the environment through bash, fish, xonsh, or activate_this.py. The distinct csh prompt-display token __VIRTUAL_PROMPT_DISPLAY_TCSH__ can instead break the generated script without establishing command execution. The attacker must influence the destination path or --prompt, and a value without a relevant placeholder name does not trigger this mechanism. This issue is fixed in version 21.14.2.

Affects virtualenv 20.26.6 through 21.14.1 when the environment path or --prompt contains a placeholder name such as __VIRTUAL_NAME__. Fixed in 21.14.2.

¿Qué significa?When a user activates the environment through a shell or activate_this.py script, the part of the path after the placeholder name runs as code, which can run arbitrary shell commands.
¿Quién está afectado?Versions 20.26.6 through 21.14.1 are affected when the destination path or --prompt contains a placeholder name such as __VIRTUAL_NAME__, __VIRTUAL_ENV__ or __VIRTUAL_PROMPT__. To check, run virtualenv --version and review the path and --prompt used when the environment was created.
¿Qué hacer?Upgrade to virtualenv 21.14.2. Until you can upgrade, do not create an environment whose path or --prompt contains a placeholder name.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
virtualenv versions 20.26.6 through 21.14.1“The bug affects versions 20.26.6 through 21.14.1.”
02
The destination path or --prompt contains a placeholder name such as __VIRTUAL_NAME__, __VIRTUAL_ENV__ or __VIRTUAL_PROMPT__“path or --prompt contains a placeholder name”
03
A user activates the environment through a shell or activate_this.py script“the rest of the path runs as code when a user activates the environment”
¿Quién debe revisar?Teams running virtualenv 20.26.6 through 21.14.1 that build environment paths or --prompt values from branch or project names in CI jobs, wrapper tools, cloned repos or unpacked archives.
No protegeChanging quote() alone does not stop this.
MitigaciónDo not create an environment whose path or --prompt contains a placeholder name such as __VIRTUAL_NAME__, __VIRTUAL_ENV__ or __VIRTUAL_PROMPT__.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:L
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
virtualenv≥ 20.26.6 < 21.14.2
20.26.6
21.14.2
21.15.6
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypivirtualenv
Corregida 21.14.2 -19 d 21.15.6 no afectada
Versiones corregidas21.14.2
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/pypa/virtualenv/security/advisories/GHSA-8rjx-v5ww-45pp
Otrahttps://github.com/pypa/virtualenv/commit/602b26623a724827ff171bf11fef4ad186d01f74
Otrahttps://github.com/pypa/virtualenv/releases/tag/21.14.2

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.