{"id":"CVE-2023-29017","aliases":["GHSA-7jxr-cg7f-gpgv"],"summary":"vm2 Sandbox Escape vulnerability","published_at":"2023-04-06T00:00:00Z","modified_at":"2026-09-10T03:49:53.632919Z","products":[],"rating":{"severity":"critical","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Critical","vendor_ratings":[{"source":"Red Hat","rating":"Critical"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.6318600177764893,"percentile":0.9922000169754028,"date":"2026-11-19T00:00:00Z"},"priority":13.5,"details":"vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Prior to version 3.9.15, vm2 was not properly handling host objects passed to `Error.prepareStackTrace` in case of unhandled async errors. A threat actor could 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.15 of vm2. There are no known workarounds.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["< 3.9.15"],"provider":"cvelistv5","source":"CVE-2023-29017","relation":"self"},{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.15"}]}],"fixed":["3.9.15"],"provider":"nvd","source":"CVE-2023-29017","relation":"self"},{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.15"}]}],"fixed":["3.9.15"],"provider":"osv","source":"GHSA-7jxr-cg7f-gpgv","relation":"self"}],"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-29017"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-1004","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1004","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-04-18T22:00:00Z","modified_at":"2023-04-19T22:00:00Z","summary":"vm2: Mehrere Schwachstellen","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in vm2 ausnutzen, um aus der Sandbox auszubrechen und beliebigen Code im Host-Kontext 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-1004"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1004.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1004"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:1897"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:1896"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:1894"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:1887"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:1888"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:1893"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-7jxr-cg7f-gpgv"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-mrgp-mrhc-5jrq"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985"}]},{"provider":"cvelistv5","source_id":"CVE-2023-29017","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-29017","license":"CC-BY-4.0","published_at":"2023-04-06T19:18:34.243Z","modified_at":"2025-02-10T16:10:57.765Z","summary":"vm2 Sandbox Escape vulnerability","details":"vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Prior to version 3.9.15, vm2 was not properly handling host objects passed to `Error.prepareStackTrace` in case of unhandled async errors. A threat actor could 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.15 of vm2. There are no known workarounds.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2023-29017"}],"affected":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["< 3.9.15"],"provider":"cvelistv5","source":"CVE-2023-29017","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-7jxr-cg7f-gpgv"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/issues/515"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/d534e5785f38307b70d3aac1945260a261a94d50"},{"type":"WEB","url":"https://gist.github.com/seongil-wi/2a44e082001b959bfe304b62121fb76d"}]},{"provider":"nvd","source_id":"CVE-2023-29017","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29017","severity":[],"affected":[{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.15"}]}],"fixed":["3.9.15"],"provider":"nvd","source":"CVE-2023-29017","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-7jxr-cg7f-gpgv","relation":"self","url":"https://osv.dev/vulnerability/GHSA-7jxr-cg7f-gpgv","license":"CC-BY-4.0","published_at":"2023-04-07T20:35:03Z","modified_at":"2026-09-10T03:49:53.632919Z","summary":"vm2 vulnerable to sandbox escape","details":"vm2 was not properly handling host objects passed to `Error.prepareStackTrace` in case of unhandled async errors.\n\n- vm2 version: ~3.9.14\n- Node version: 18.15.0, 19.8.1, 17.9.1\n\n### Impact\nA threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox.\n\n### Patches\nThis vulnerability was patched in the release of version `3.9.15` of `vm2`.\n\n### Workarounds\nNone.","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-7jxr-cg7f-gpgv"}],"affected":[{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.15"}]}],"fixed":["3.9.15"],"provider":"osv","source":"GHSA-7jxr-cg7f-gpgv","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-7jxr-cg7f-gpgv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29017"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/issues/515"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/d534e5785f38307b70d3aac1945260a261a94d50"},{"type":"WEB","url":"https://gist.github.com/seongil-wi/2a44e082001b959bfe304b62121fb76d"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"}]},{"provider":"redhat-vex","source_id":"CVE-2023-29017","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-29017","license":"CC-BY-4.0","published_at":"2023-04-06T00:00:00Z","modified_at":"2023-08-25T13:06:54Z","summary":"vm2: sandbox escape","details":"A flaw was found in vm2 where the component was not properly handling asynchronous errors. This flaw allows a remote, unauthenticated attacker to escape the restrictions of the sandbox and execute code on the host.","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-29017"},{"type":"Red Hat","score":"Critical","source":"CVE-2023-29017"}],"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-29017"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-29017.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-29017"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2185374"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-29017"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29017"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/issues/515"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-7jxr-cg7f-gpgv"}]}],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-7jxr-cg7f-gpgv"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/issues/515"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/d534e5785f38307b70d3aac1945260a261a94d50"},{"type":"WEB","url":"https://gist.github.com/seongil-wi/2a44e082001b959bfe304b62121fb76d"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29017"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-29017.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-29017"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2185374"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-29017"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-1004","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1004","license":"TLP:CLEAR, mirroring permitted","modified_at":"2023-04-19T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2023-29017","url":"https://www.cve.org/CVERecord?id=CVE-2023-29017","license":"CC-BY-4.0","modified_at":"2025-02-10T16:10:57.765Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-29017","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29017","relation":"self"},{"provider":"osv","source_id":"GHSA-7jxr-cg7f-gpgv","url":"https://osv.dev/vulnerability/GHSA-7jxr-cg7f-gpgv","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:53.632919Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-29017","url":"https://access.redhat.com/security/cve/CVE-2023-29017","license":"CC-BY-4.0","modified_at":"2023-08-25T13:06:54Z","relation":"self"}]}
