CVE-2026-93603patriksimek vm2
Escape de sandbox y ejecución remota de código en vm2 a través de funciones hos…
Crítica 10.0 Sin autenticación
Seguir: esta CVE · patriksimek · patriksimek vm2 Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 75
- CVSS 4.0
- 10.0
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 18 sep 2026
- Actualizada
- 22 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-94
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Qué pasa
vm2 versiones hasta 3.12.0 no maneja correctamente un receptor `this` nulo en la trampa apply de su puente, permitiendo que código sandboxed acceda al objeto global del host cuando se llama una función host no estricta sin receptor. Un atacante puede escapar del sandbox y ejecutar código arbitrario en el host, incluyendo comandos del sistema a través de `process.getBuiltinModule('child_process').execSync`.
Ver el texto original de NVD (en inglés)
vm2 through 3.12.0 (fixed in 3.12.1) does not correctly handle a nullish `this` receiver in the apply trap of its bridge (lib/bridge.js): when sandboxed code calls a host-provided non-strict (sloppy-mode) function without a receiver — e.g. `fn()`, a detached method, `fn.call()`, `fn.apply(undefined)`, `Reflect.apply(fn, undefined, [])`, or `fn.bind()()` — the undefined receiver is passed straight through to the host call, and V8 substitutes the host realm's global object for `this`. vm2 then wraps and returns that object to the sandbox, giving sandboxed script a live proxy of the host global. This allows a complete sandbox escape: untrusted script can reach `process` and execute arbitrary code/commands on the host (for example via `process.getBuiltinModule('child_process').execSync`). Exploitation requires that the embedding application expose at least one non-strict host function to the sandbox; strict-mode and ES module host functions are not affected.
Qué hacer
Hay parche · versiones corregidas: 3.12.1
Actualiza vm2 a la versión 3.12.1 o superior para corregir el manejo del receptor `this` en funciones host no estrictas.
- Aplica la actualización de seguridad del fabricante para vm2.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Productos afectados
- patriksimek · vm2
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.