Amenazas en vivo

Todas las CVE / patriksimek

CVE-2026-92935patriksimek vm2

Ejecución remota de código en vm2 mediante configuración de require con array

Crítica 9.5 Sin autenticación

Prioridad
72
CVSS 4.0
9.5
EPSS
—
Requiere autenticación
No
Publicada
17 sep 2026
Actualizada
17 sep 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-913
SSVC (CISA)
Explotación: ninguna · Automatizable: no · Impacto técnico: total
Vector
CVSS:4.0/AV:N/AC:H/AT:P/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 3.11.4 a 3.11.6 contienen una falla en la validación de la configuración de `require` en NodeVM que permite a un atacante eludir el sandbox. Si se configura NodeVM con `nesting: true` y `require: []` (un array), el atacante puede requerir el módulo `vm2` del host, crear una NodeVM interna con acceso a módulos nativos como `child_process`, y ejecutar comandos arbitrarios con los privilegios del proceso Node.js.

Ver el texto original de NVD (en inglés)

vm2 is a sandbox for running untrusted Node.js code. In versions >= 3.11.4 and <= 3.11.6, the NodeVM constructor computes `hasRealRequireConfig` with `typeof requireOpts === 'object' && requireOpts !== null`, so an array-shaped `require` value (for example `require: []`) satisfies the guard that is meant to reject nesting without an explicit require configuration. `makeResolverFromLegacyOptions()` then destructures the array into undefined option fields and returns a resolver containing only `NESTING_OVERRIDE.vm2`. As a result, an attacker who can supply JavaScript executed by a NodeVM configured with truthy `nesting` and an array-shaped `require` (e.g. `new NodeVM({nesting: true, require: []})`) can require the host `vm2` module, create an inner NodeVM with an attacker-chosen builtin allowlist (such as `child_process`), and execute arbitrary commands with the privileges of the host Node.js process, escaping the sandbox. Outer builtin restrictions do not constrain the attacker-created inner NodeVM. This issue is fixed in vm2 3.11.7.

Texto de la fuente, sin modificar. NVD.

Qué hacer

Hay parche · versiones corregidas: 3.11.7

Actualiza vm2 a la versión 3.11.7 o superior para aplicar la corrección de validación de configuración.

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.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
npm vm2 ≥ 3.11.4 < 3.11.7 3.11.7 npm install vm2@3.11.7

Según OSV / GitHub Advisories (GHSA-8hr7-r645-pc6w). Verifica la versión en tu lockfile antes de actualizar.

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.