{"id":"CVE-2026-44007","published":"2026-05-13T17:33:19Z","modified":"2026-11-04T03:32:47Z","title":"vm2: nesting: true bypasses require: false, allowing sandbox escape to arbitrary OS command execution","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.1, when a NodeVM is created with nesting: true, sandbox code can unconditionally require('vm2') regardless of the outer VM's require configuration — including require: false. With access to vm2, the sandbox constructs a new inner NodeVM with its own unrestricted require settings and executes arbitrary OS commands on the host. Any application that runs untrusted code inside a NodeVM with nesting: true is fully compromised. This vulnerability is fixed in 3.11.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01005,"percentile":0.63804,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"},{"id":"CWE-1100","name":"Insufficient Isolation of System-Dependent Functions"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-8hg8-63c5-gwmx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patriksimek/vm2/commit/46cbbdde4e19b743974c942278080231004146ca","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2026:50850","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-44007","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2477198","tags":["x_refsource_MISC"]},{"url":"https://github.com/patriksimek/vm2/releases/tag/v3.11.1","tags":["x_refsource_MISC"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44007.json","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/05/11","tags":["x_refsource_MISC"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":12.76},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["< 3.11.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-15T03:55:57.981614Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.11.1"],"patched":["3.11.1"],"from":["GHSA-8hg8-63c5-gwmx"],"provenance":"source"}],"summary":{"text":"The vm2 sandbox library for Node.js has a flaw in NodeVM when nesting is enabled, where sandboxed code can require vm2 even though the outer VM's require setting is false, and so can create an inner NodeVM with unrestricted require settings. An attacker who can get code to run inside a NodeVM created with nesting: true, which requires the attacker to be able to supply that untrusted code and no prior authentication, can use the inner VM to execute arbitrary operating system commands on the host.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:20Z"},"euvd":{"id":"EUVD-2026-30077","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patriksimek-vm2-cve-2023-37903","children":[{"from":"CVE-2026-44007","to":"CVE-2026-47137","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/nodevm.js"],"commits":["https://github.com/patriksimek/vm2/commit/46cbbdde4e19b743974c942278080231004146ca","https://github.com/patriksimek/vm2/commit/01a7552add345d5a6862623884e6b79a85bf0568","https://github.com/patriksimek/vm2/commit/86ab819f202c3a8dad88cef5705f2e416c5188d7"],"basis":"shared function","functions":["NodeVM"]}]}],"packageHistory":[{"cve":"CVE-2026-44004","published":"2026-05-13","fixed":"3.11.0","kev":false},{"cve":"CVE-2026-44005","published":"2026-05-13","fixed":"3.11.0","kev":false},{"cve":"CVE-2026-44006","published":"2026-05-13","fixed":"3.11.0","kev":false},{"cve":"CVE-2026-44007","published":"2026-05-13","fixed":"3.11.1","kev":false},{"cve":"CVE-2026-44008","published":"2026-05-13","fixed":"3.11.2","kev":false,"link":{"from":"CVE-2026-44007","to":"CVE-2026-44008","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.11.1","toFixed":"3.11.2","daysApart":0}]}},{"cve":"CVE-2026-44009","published":"2026-05-13","fixed":"3.11.2","kev":false,"link":{"from":"CVE-2026-44007","to":"CVE-2026-44009","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.11.1","toFixed":"3.11.2","daysApart":0}]}},{"cve":"CVE-2026-45411","published":"2026-05-13","fixed":"3.11.3","kev":false}],"package":"npm:vm2"}}