{"id":"CVE-2023-32314","published":"2023-05-15T19:46:32Z","modified":"2025-01-22T21:42:31Z","title":"Sandbox Escape","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"vm2 is a sandbox that can run untrusted code with Node's built-in modules. A sandbox escape vulnerability exists in vm2 for versions up to and including 3.9.17. It abuses an unexpected creation of a host object based on the specification of `Proxy`. As a result a threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version `3.9.18` of `vm2`. Users are advised to upgrade. There are no known workarounds for this vulnerability.","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.08127,"percentile":0.94837,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-whpj-8f3w-67p5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patriksimek/vm2/commit/d88105f99752305c5b8a77b63ddee3ec86912daf","tags":["x_refsource_MISC"]},{"url":"https://gist.github.com/arkark/e9f5cf5782dec8321095be3e52acf5ac","tags":["x_refsource_MISC"]},{"url":"https://github.com/patriksimek/vm2/releases/tag/3.9.18","tags":["x_refsource_MISC"]}],"priority":{"score":30.8,"factors":[{"name":"EPSS percentile","points":18.97},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-04-02","earliestUrl":"https://github.com/AdarkSt/Honeypot_Smart_Infrastructure","repos":[{"name":"AdarkSt/Honeypot_Smart_Infrastructure","url":"https://github.com/AdarkSt/Honeypot_Smart_Infrastructure","stars":1,"created":"2024-04-02"}]},"first":{"date":"2024-04-02","source":"PoC-in-GitHub","url":"https://github.com/AdarkSt/Honeypot_Smart_Infrastructure"},"provenance":"source"},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["< 3.9.18"]}],"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.9.18"],"patched":["3.9.18"],"from":["GHSA-whpj-8f3w-67p5"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-1640","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-29199","published":"2023-04-14","fixed":"3.9.16","kev":false},{"cve":"CVE-2023-30547","published":"2023-04-17","fixed":"3.9.17","kev":false,"link":{"from":"CVE-2023-30547","to":"CVE-2023-32314","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.9.17","toFixed":"3.9.18","daysApart":28}]}},{"cve":"CVE-2023-32313","published":"2023-05-15","fixed":"3.9.18","kev":false},{"cve":"CVE-2023-32314","published":"2023-05-15","fixed":"3.9.18","kev":false},{"cve":"CVE-2023-37466","published":"2023-07-13","fixed":"3.10.0","kev":false,"link":{"from":"CVE-2023-32314","to":"CVE-2023-37466","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.9.18","toFixed":"3.10.0","daysApart":59}]}},{"cve":"CVE-2026-22709","published":"2026-01-26","fixed":"3.10.2","kev":false},{"cve":"CVE-2026-24120","published":"2026-05-04","fixed":"3.10.5","kev":false}],"package":"npm:vm2"}}