llamaCVEVulnerability Intelligence
/
virtualenv

CVE-2026-113725

virtualenv bash activate runs commands from an environment name with a backslash before $

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 -8 d de la divulgación
Exposición29 dDesde la divulgación, 20 oct 2026, 2:56 p. m.
Detección2 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.7
Monitoreo
Detectada
Fuente: NIST NVD
Verificada
12 oct 26
20 oct 26
21 oct 26
22 oct 26
17 nov 26
18 nov 26
19 nov 26
12 oct 26
22 oct 26
31 oct 26
10 nov 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 21.14.7 virtualenv · -8 d desde divulgación
Divulgación Publicada CVE-2026-113725 divulgada · CVSS 7.8 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
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.14.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.

Affects virtualenv 21.14.6 and earlier when the user's shell is bash; zsh is not affected. Fixed in 21.14.7.

¿Qué significa?Under bash, the activate script expands the environment name as a prompt, so a backslash before $ can make bash run commands embedded in that name. The commands run with the privileges of the user who sources activate, once per prompt draw.
¿Quién está afectado?Every virtualenv release up to 21.14.6 is affected, but only under bash with the prompt enabled (VIRTUAL_ENV_DISABLE_PROMPT not set to 1). Check the version with virtualenv --version or pip show virtualenv, and check the shell you source activate from. Zsh is not affected, and as root the payload shows wrong text but runs nothing.
¿Qué hacer?Upgrade to virtualenv 21.14.7, which escapes backslashes under bash. If you cannot upgrade yet, set VIRTUAL_ENV_DISABLE_PROMPT=1 before sourcing activate, or run shopt -u promptvars if your prompt does not need expansion.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
virtualenv 21.14.6 or earlier is affected“Every release up to 21.14.6 is affected”
02
The user's shell is bash; zsh is not affected“zsh does no decode pass and is not affected.”
03
Bash runs as a non-root user; as root the payload shows wrong text but runs nothing“A bash running as root decodes”
04
The prompt is not disabled (VIRTUAL_ENV_DISABLE_PROMPT is not set to 1)“Set VIRTUAL_ENV_DISABLE_PROMPT=1 before you source activate”
¿Quién debe revisar?Teams running virtualenv 21.14.6 or earlier with bash, including CI jobs and developers who source environments from cloned repositories or unpacked archives
MitigaciónSet VIRTUAL_ENV_DISABLE_PROMPT=1 before you source activate, or run shopt -u promptvars if your prompt does not need expansion.
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.7
21.14.7
21.15.6
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypivirtualenv
Corregida 21.14.7 -8 d 21.15.6 no afectada
Versiones corregidas21.14.7
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-vxj4-q4g9-crj7
Otrahttps://github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932
Otrahttps://github.com/pypa/virtualenv/releases/tag/21.14.7

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