llamaCVEVulnerability Intelligence
/
virtualenv

CVE-2026-113718

virtualenv: Xonsh activation literals depend on the script decoding codec

Specific setups onlyParche disponiblecode injection
Descargar PNG JSON
CVSS 4.0
7.1
Alta
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Fuente: CNA
7.8NVD · CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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:39 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: OSV
Fuente: NIST NVD
Verificada
17 oct 26
20 oct 26
22 oct 26
23 oct 26
27 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-113718 divulgada · CVSS 7.1 (CNA)
Monitoreo Detectada Ingresó al índice
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: 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, POSIX xonsh activation quote() uses repr() to write printable non-ASCII prompt or destination data into UTF-8 activate.xsh, while xonsh can read that script using $XONSH_ENCODING. Under a legacy multibyte codec such as GBK or Big5, a UTF-8 trail byte can consume the backslash before an adjacent quote, allowing the literal to close and attacker-influenced statements to execute when the user sources the generated script. This issue is fixed in version 21.14.9.

Affects virtualenv 21.3.0 through 21.14.8 with xonsh POSIX activation scripts read under a legacy multibyte encoding such as GBK or Big5. Fixed in 21.14.9.

¿Qué significa?When xonsh reads a UTF-8 virtualenv activation script using a legacy multibyte encoding such as GBK or Big5, the activation literals can be decoded incorrectly. An affected activation can then execute commands with the user's privileges.
¿Quién está afectado?Versions from 21.3.0 through 21.14.8 are affected, and the report concerns POSIX activation under xonsh. To check, look at the installed virtualenv version and whether xonsh is in use with a legacy multibyte source encoding such as GBK or Big5.
¿Qué hacer?Upgrade virtualenv to 21.14.9, which is the fixed version. On older releases, the workaround is to use UTF-8 source decoding in xonsh.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Affects virtualenv versions from 21.3.0 through 21.14.8.“>= 21.3.0, <= 21.14.8”
02
Applies to POSIX xonsh activation scripts.“The report concerns POSIX activation.”
03
The user's xonsh reads the activation script with a legacy multibyte encoding such as GBK or Big5.“Xonsh reads a UTF-8 activation script using a legacy multibyte encoding such as GBK.”
¿Quién debe revisar?Teams running virtualenv 21.3.0 through 21.14.8 that use xonsh shells on POSIX, where prompt or destination values may come from untrusted input.
No protegeExisting activate.xsh files must be regenerated after the fix.
MitigaciónUse UTF-8 source decoding in xonsh on older releases.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · NVD
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≥ 21.3.0 < 21.14.9
21.3.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-394h-qwmc-48pf
Otrahttps://github.com/pypa/virtualenv/pull/3432
Otrahttps://github.com/pypa/virtualenv/commit/e5fc2e6e189a877ff559af288919e3525d13e5e0
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.