llamaCVEVulnerability Intelligence
/
virtualenv

CVE-2026-113726

virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST

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 -18 d de la divulgación
Exposición29 dDesde la divulgación, 20 oct 2026, 5:05 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.4
Monitoreo
Detectada
Fuente: NIST NVD
Verificada
2 oct 26
20 oct 26
22 oct 26
27 oct 26
18 nov 26
19 nov 26
2 oct 26
14 oct 26
26 oct 26
7 nov 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 21.14.4 virtualenv · -18 d desde divulgación
Divulgación Publicada CVE-2026-113726 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. Prior to 21.13.0, the bash activate script that zsh also sources leaves the environment name unescaped; from 21.13.0 until 21.14.4, it escapes backslashes, dollar signs, and backticks only when BASH_VERSION is set, so zsh receives the raw value. The script assigns that value to PS1. In zsh with PROMPT_SUBST, an attacker-influenced environment directory, --prompt, or VIRTUALENV_PROMPT value containing command, parameter, or arithmetic expansion syntax can therefore execute commands in the user's shell each time the prompt is drawn. A percent sign is separately interpreted as a zsh prompt escape but does not by itself execute commands. Plain zsh with PROMPT_SUBST disabled and bash are not affected by this mechanism. This issue is fixed in version 21.14.4.

virtualenv 21.14.3 and earlier is affected when activated from zsh with PROMPT_SUBST set and a name, directory, or prompt value containing $(...), backticks, or ${...}. Fixed in 21.14.4.

¿Qué significa?When PROMPT_SUBST is on in zsh, the shell expands the prompt each time it is drawn. A virtualenv name, directory, or --prompt value containing $(...), backticks, or ${...} is then run as commands in the user's shell, once per prompt.
¿Quién está afectado?Affected releases are virtualenv 21.14.3 and earlier, activated from zsh with PROMPT_SUBST set; oh-my-zsh usually enables it, while plain zsh starts with it off. To check, run virtualenv --version for the version and setopt | grep prompt_subst in zsh to see whether the option is on.
¿Qué hacer?Upgrade to virtualenv 21.14.4, which is the fixed version and carries patch 5b91536.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Affected releases are virtualenv up to and including 21.14.3.“The bug is in releases up to and including 21.14.3.”
02
The environment is activated from zsh with the PROMPT_SUBST option set.“With the PROMPT_SUBST option set, zsh runs parameter expansion, command substitution and arithmetic expansion on PS1 each time it draws the prompt.”
03
The environment name, directory or --prompt / VIRTUALENV_PROMPT value contains $(...), backticks or ${...}.“A name that contains $(...) , backticks or ${...} then runs as commands in the user's shell, once per prompt.”
04
oh-my-zsh users typically have PROMPT_SUBST enabled, while plain zsh starts with it off.“oh-my-zsh users have it on”
¿Quién debe revisar?Anyone running pypa virtualenv 21.14.3 or earlier who activates environments from zsh, including oh-my-zsh users with PROMPT_SUBST on.
MitigaciónSet VIRTUAL_ENV_DISABLE_PROMPT=1 before you source activate, or run unsetopt prompt_subst if your prompt does not need it.
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< 21.14.4
21.14.4
21.15.6
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypivirtualenv
Corregida 21.14.4 -18 d 21.15.6 no afectada
Versiones corregidas21.14.4
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-5vjq-rrrf-7h2q
Otrahttps://github.com/pypa/virtualenv/commit/5b915367da82bd024b2a0d28d2f98007034b4aa2
Otrahttps://github.com/pypa/virtualenv/releases/tag/21.14.4

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