{"id":"CVE-2023-37466","aliases":["GHSA-cchq-frgv-rjh5","WID-SEC-W-2023-1752"],"summary":"vm2 Sandbox Escape vulnerability","published_at":"2023-07-13T17:02:02Z","modified_at":"2026-02-03T03:14:11.294662Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"BSI","rating":"hoch"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.038669999688863754,"percentile":0.9041100144386292,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"vm2 is an advanced vm/sandbox for Node.js. The library contains critical security issues and should not be used for production. The maintenance of the project has been discontinued. In vm2 for versions up to 3.9.19, `Promise` handler sanitization can be bypassed with the `@@species` accessor property allowing attackers to escape the sandbox and run arbitrary code, potentially allowing remote code execution inside the context of vm2 sandbox. Version 3.10.0 contains a patch for the issue.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["<= 3.9.19"],"provider":"cvelistv5","source":"CVE-2023-37466","relation":"self"},{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.9.19"}]}],"provider":"nvd","source":"CVE-2023-37466","relation":"self"},{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.10.0"}]}],"fixed":["3.10.0"],"provider":"osv","source":"GHSA-cchq-frgv-rjh5","relation":"self"}],"product_status":[{"vendor":"BSI","product":"Open Source vm2 <= 3.9.19","cpe":"cpe:/a:vm2_project:vm2:3.9.19","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-1752"},{"vendor":"BSI","product":"Red Hat Enterprise Linux","cpe":"cpe:/o:redhat:enterprise_linux:-","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-1752"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/console-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2023-37466"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2023-37466","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-37466","license":"CC-BY-4.0","published_at":"2023-07-13T23:17:51.434Z","modified_at":"2026-01-05T21:25:27.207Z","summary":"vm2 Sandbox Escape vulnerability","details":"vm2 is an advanced vm/sandbox for Node.js. The library contains critical security issues and should not be used for production. The maintenance of the project has been discontinued. In vm2 for versions up to 3.9.19, `Promise` handler sanitization can be bypassed with the `@@species` accessor property allowing attackers to escape the sandbox and run arbitrary code, potentially allowing remote code execution inside the context of vm2 sandbox. Version 3.10.0 contains a patch for the issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2023-37466"}],"affected":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["<= 3.9.19"],"provider":"cvelistv5","source":"CVE-2023-37466","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-cchq-frgv-rjh5"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/d9a1fde8ec5a5a9c9e5a69bf91d703950859d744"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/v3.10.0"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-1752","relation":"self","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1752","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-07-13T22:00:00Z","modified_at":"2023-09-05T22:00:00Z","summary":"vm2: Schwachstelle ermöglicht Codeausführung","details":"Ein entfernter, anonymer Angreifer kann eine Schwachstelle in vm2 ausnutzen, um beliebigen Programmcode auszuführen.\n\nvm2 ist eine Sandbox, in der nicht vertrauenswürdiger Code der in Node integrierten Module ausgeführt werden kann.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2023-1752"}],"affected":[],"product_status":[{"vendor":"BSI","product":"Open Source vm2 <= 3.9.19","cpe":"cpe:/a:vm2_project:vm2:3.9.19","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-1752"},{"vendor":"BSI","product":"Red Hat Enterprise Linux","cpe":"cpe:/o:redhat:enterprise_linux:-","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-1752"}],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1752.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1752"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:4972"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:4980"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:4875"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:4862"},{"type":"WEB","url":"https://github.com/advisories/GHSA-cchq-frgv-rjh5"}]},{"provider":"nvd","source_id":"CVE-2023-37466","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37466","severity":[],"affected":[{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.9.19"}]}],"provider":"nvd","source":"CVE-2023-37466","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-cchq-frgv-rjh5","relation":"self","url":"https://osv.dev/vulnerability/GHSA-cchq-frgv-rjh5","license":"CC-BY-4.0","published_at":"2023-07-13T17:02:02Z","modified_at":"2026-02-03T03:14:11.294662Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-cchq-frgv-rjh5"}],"affected":[{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.10.0"}]}],"fixed":["3.10.0"],"provider":"osv","source":"GHSA-cchq-frgv-rjh5","relation":"self"}],"product_status":[],"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"}]},{"provider":"redhat-vex","source_id":"CVE-2023-37466","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-37466","license":"CC-BY-4.0","published_at":"2023-07-17T00:00:00Z","modified_at":"2025-11-03T22:23:44Z","summary":"vm2: Promise handler sanitization can be bypassed allowing attackers to escape the sandbox and run arbitrary code","details":"A flaw was found in the vm2 Promise handler sanitization, which allows attackers to escape the sandbox. This flaw allows attackers to run arbitrary code.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2023-37466"},{"type":"Red Hat","score":"Moderate","source":"CVE-2023-37466"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/console-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2023-37466"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-37466.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-37466"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2232376"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-37466"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37466"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-cchq-frgv-rjh5"}]}],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-cchq-frgv-rjh5"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/d9a1fde8ec5a5a9c9e5a69bf91d703950859d744"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/v3.10.0"},{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1752.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1752"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:4972"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:4980"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:4875"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:4862"},{"type":"WEB","url":"https://github.com/advisories/GHSA-cchq-frgv-rjh5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37466"},{"type":"WEB","url":"https://gist.github.com/leesh3288/f693061e6523c97274ad5298eb2c74e9"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20230831-0007"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20241108-0002"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-37466.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-37466"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2232376"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-37466"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2023-37466","url":"https://www.cve.org/CVERecord?id=CVE-2023-37466","license":"CC-BY-4.0","modified_at":"2026-01-05T21:25:27.207Z","relation":"self"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-1752","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1752","license":"TLP:CLEAR, mirroring permitted","modified_at":"2023-09-05T22:00:00Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-37466","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37466","relation":"self"},{"provider":"osv","source_id":"GHSA-cchq-frgv-rjh5","url":"https://osv.dev/vulnerability/GHSA-cchq-frgv-rjh5","license":"CC-BY-4.0","modified_at":"2026-02-03T03:14:11.294662Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-37466","url":"https://access.redhat.com/security/cve/CVE-2023-37466","license":"CC-BY-4.0","modified_at":"2025-11-03T22:23:44Z","relation":"self"}]}
