llamaCVEVulnerability Intelligence
/
virtualenv

CVE-2026-113722

virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax

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ónPoC públicaSSVC: poc · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -3 d de la divulgación
Exposición29 dDesde la divulgación, 20 oct 2026, 2:48 p. m.
Detección2 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, 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.9
Monitoreo
Detectada
Fuente: NIST NVD
Verificada
17 oct 26
20 oct 26
22 oct 26
23 oct 26
18 nov 26
19 nov 26
17 oct 26
26 oct 26
3 nov 26
11 nov 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 21.14.9 virtualenv · -3 d desde divulgación
Divulgación Publicada CVE-2026-113722 divulgada · CVSS 7.8 (CNA)
Monitoreo Detectada Ingresó al índice
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
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.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib ScriptMaker when generating POSIX console scripts. When the path contains a space or produces a shebang longer than 127 bytes, distlib emits a /bin/sh wrapper whose double-quoted interpreter path still expands command substitutions and backticks. An attacker who influences the environment destination can therefore execute commands with the user's privileges when the user later runs a generated launcher; environment creation and activation do not trigger the command. Existing launchers are not repaired by upgrading virtualenv alone and must be regenerated, while a later independent pip installation or upgrade can reintroduce an affected launcher because pip's vendored distlib is unchanged. The virtualenv fix is released in version 21.14.9.

Affects virtualenv 20.0.0 through 21.14.8 when the interpreter path contains a space or the shebang is longer than 127 bytes. Fixed in 21.14.9.

¿Qué significa?Generated POSIX console launchers can treat the environment destination path as shell syntax, so parts of the path can be interpreted as commands when the launcher runs. Running an affected launcher can execute commands with the calling user's privileges.
¿Quién está afectado?Versions 20.0.0 through 21.14.8 are affected, and only when the interpreter path contains a space or the shebang is longer than 127 bytes, so distlib writes a /bin/sh wrapper. To check, run virtualenv --version and look at the first line of the launchers in the environment's bin directory for a /bin/sh shebang.
¿Qué hacer?Upgrade virtualenv to 21.14.9, the fixed version. A later pip installation or upgrade inside the environment can replace a corrected launcher with an affected one, so recheck launchers after any such change.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
virtualenv versions >= 20.0.0 and <= 21.14.8 are affected.“>= 20.0.0, <= 21.14.8”
02
The interpreter path contains a space, or the shebang is longer than 127 bytes so distlib writes a /bin/sh wrapper.“When the path has a space or the shebang exceeds 127 bytes, distlib emits a #!/bin/sh wrapper”
03
The attacker influences the environment destination path, and the user later runs a generated POSIX console launcher.“An attacker must influence the environment destination passed to virtualenv, and the user must subsequently run a generated launcher.”
04
Launchers written by a later independent pip install or upgrade inside the environment can be affected again.“A later independent pip installation or upgrade can replace a corrected launcher with an affected one.”
MitigaciónUse an environment destination chosen by a trusted user. For older releases, avoid generating environments at destinations derived from untrusted input.
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.9
virtualenv≥ 20.0.0 < 21.14.9
20.0.0
21.14.9
21.15.6
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypivirtualenv
Corregida 21.14.9 -3 d 21.15.6 no afectada
Versiones corregidas21.14.9
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-c978-59m8-c77v
Otrahttps://github.com/pypa/virtualenv/pull/3417
Otrahttps://github.com/pypa/virtualenv/commit/2519941bed33ee0d3ac99277f67913e439e476a9
Otrahttps://github.com/pypa/virtualenv/releases/tag/21.14.9

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