CVE-2026-92938patriksimek vm2
Ejecución de código nativo en vm2 mediante módulo node:sqlite
Crítica 9.4
Seguir: esta CVE · patriksimek · patriksimek vm2 Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 56
- CVSS 4.0
- 9.4
- EPSS
- —
- Requiere autenticación
- Sí
- Publicada
- 17 sep 2026
- Actualizada
- 19 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-693
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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.3 a 3.11.6 exponen el módulo node:sqlite de Node.js a código ejecutado en NodeVM cuando este builtin está permitido. Un atacante autenticado puede crear una base de datos SQLite con carga de extensiones habilitada y cargar una librería nativa desde el paquete del plugin, logrando ejecución de código nativo fuera del sandbox con privilegios del proceso host.
Ver el texto original de NVD (en inglés)
vm2 versions 3.11.3 through 3.11.6 expose Node.js's host node:sqlite module to code running in NodeVM when that builtin is permitted, either explicitly or through builtin: ['*']. The module is wrapped with vm.readonly(), which prevents property assignment but leaves host-authority callables reachable; in addition, the resolver treats any request starting with 'node:' as a core-module request and the runtime strips only one 'node:' prefix, so a sandbox request for 'node:node:sqlite' resolves to the configured node:sqlite entry. Sandboxed code can therefore create an in-memory DatabaseSync with extension loading enabled and call DatabaseSync.loadExtension() on a native library bundled in the untrusted plugin package (path derived from __dirname). SQLite loads the library into the Node.js host process and invokes its native entry point, giving the sandboxed plugin arbitrary native code execution outside the sandbox with the host process's privileges. The issue is fixed in vm2 3.11.7.
Qué hacer
Hay parche · versiones corregidas: 3.11.7
Actualiza vm2 a versión 3.11.7 o superior.
- Aplica la actualización de seguridad del fabricante para vm2.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | vm2 |
≥ 3.11.3 < 3.11.7 |
3.11.7 |
npm install vm2@3.11.7 |
Según OSV / GitHub Advisories (GHSA-6w8r-xxw2-g3hx). Verifica la versión en tu lockfile antes de actualizar.
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.