{"id":"GHSA-cchq-frgv-rjh5","summary":"vm2 Sandbox Escape vulnerability","details":"In vm2 for versions up to 3.9.19, `Promise` handler sanitization can be bypassed, allowing attackers to escape the sandbox and run arbitrary code.\n\n### Impact\nRemote Code Execution, assuming the attacker has arbitrary code execution primitive inside the context of vm2 sandbox.\n\n### Patches\nNone.\n\n### Workarounds\nNone.\n\n### References\nPoC - https://gist.github.com/leesh3288/f693061e6523c97274ad5298eb2c74e9\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in [VM2](https://github.com/patriksimek/vm2)\n\nThanks to [Xion](https://twitter.com/0x10n) (SeungHyun Lee) of [KAIST Hacking Lab](https://kaist-hacking.github.io/) for disclosing this vulnerability.","aliases":["CVE-2023-37466"],"modified":"2026-02-03T03:14:11.294662Z","published":"2023-07-13T17:02:02Z","database_specific":{"cwe_ids":["CWE-94"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2023-07-13T17:02:02Z","nvd_published_at":"2023-07-14T00:15:09Z"},"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-cchq-frgv-rjh5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37466"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/d9a1fde8ec5a5a9c9e5a69bf91d703950859d744"},{"type":"WEB","url":"https://gist.github.com/leesh3288/f693061e6523c97274ad5298eb2c74e9"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/v3.10.0"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20230831-0007"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20241108-0002"}],"affected":[{"package":{"name":"vm2","ecosystem":"npm","purl":"pkg:npm/vm2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.10.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-cchq-frgv-rjh5/GHSA-cchq-frgv-rjh5.json","last_known_affected_version_range":"\u003c= 3.9.19"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}