{"id":"CVE-2023-37903","published":"2023-07-21T19:42:09Z","modified":"2025-11-03T21:48:55Z","title":"Sandbox Escape in vm2","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"vm2 is an open source vm/sandbox for Node.js. In vm2 for versions up to and including 3.9.19, Node.js custom inspect function allows attackers to escape the sandbox and run arbitrary code. This may result in Remote Code Execution, assuming the attacker has arbitrary code execution primitive inside the context of vm2 sandbox. There are no patches and no known workarounds. Users are advised to find an alternative software.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04535,"percentile":0.92328,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-g644-9gfx-q4q4","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20230831-0007/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241108-0002/","tags":[]}],"priority":{"score":30.3,"factors":[{"name":"EPSS percentile","points":18.47},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-11-05","earliestUrl":"https://github.com/7h3h4ckv157/CVE-2023-37903","repos":[{"name":"7h3h4ckv157/CVE-2023-37903","url":"https://github.com/7h3h4ckv157/CVE-2023-37903","stars":9,"created":"2023-11-05"}]},"first":{"date":"2023-11-05","source":"PoC-in-GitHub","url":"https://github.com/7h3h4ckv157/CVE-2023-37903"},"provenance":"source"},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["<= 3.9.19"]}],"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<=3.9.19"],"patched":[],"from":["GHSA-g644-9gfx-q4q4"],"provenance":"source"}],"summary":{"text":"A flaw in the vm2 sandbox for Node.js, in the way it handles Node.js custom inspect functions, lets code escape the sandbox. An attacker who already has the ability to execute arbitrary code inside a vm2 sandbox context can use it to run arbitrary code outside the sandbox, which may lead to remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:18:51Z"},"euvd":{"id":"EUVD-2023-2054","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patriksimek-vm2-cve-2023-37903","children":[{"from":"CVE-2023-37903","to":"CVE-2026-47137","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-g644-9gfx-q4q4","via":"related"}]}]}}