vm2 before 3.11.7 Sandbox Escape via CLI require (patriksimek vm2)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.20 % Β· percentile 9 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- VulnCheck
- NVD status
- Deferred
Description
vm2 before 3.11.7 contains a sandbox escape vulnerability in the CLI tool that allows attackers to execute arbitrary code in the host Node.js process. Attackers can supply a malicious script file to the vm2 CLI that uses require(__filename) to re-execute itself in the host realm, bypassing sandbox isolation and accessing host modules like fs and child_process.
Weaknesses (CWE)
- CWE-453 β Insecure Default Variable Initialization
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 4.0 | CRITICAL 9.3 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H | VulnCheck |
| CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H | VulnCheck |
| CVSS 4.0 | CRITICAL 9.3 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/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 | NVD Β· disclosure@vulncheck.com (Secondary) |
| CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H | NVD Β· disclosure@vulncheck.com (Secondary) |
Advisories
- GHSA-jxxv-8r27-vm4p β vm2 CLI provides no sandbox isolation - host-realm require() is reachable from sandboxed scripts
European references
- ENISA EUVD Β· EUVD-2026-81599
- GCVE Β· GCVE-0-2026-92950
Affected products
| Product | Versions |
|---|---|
| patriksimek Β· vm2 | affected 0 < 3.11.7 ; unaffected 3.11.7 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |