Amenazas en vivo

Todas las CVE / patriksimek

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

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.

Texto de la fuente, sin modificar. NVD.

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.

Aviso del fabricante · github.com ↗

  1. Aplica la actualización de seguridad del fabricante para vm2.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Productos afectados

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.