{"id":"CVE-2023-30547","aliases":["GHSA-ch3r-j5x3-6q2m"],"summary":"Sandbox Escape in vm2","published_at":"2023-04-17T00:00:00Z","modified_at":"2025-02-05T20:30:17.472Z","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":"Critical","vendor_ratings":[{"source":"Red Hat","rating":"Critical"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.7297300100326538,"percentile":0.9946600198745728,"date":"2026-11-20T00:00:00Z"},"priority":13.3,"record_count":5,"vendors":["Red Hat","BSI","GitHub"],"details":"vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception inside `handleException()` which can be used to escape the sandbox and run arbitrary code in host context. This vulnerability was patched in the release of version `3.9.17` of `vm2`. There are no known workarounds for this vulnerability. Users are advised to upgrade.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["< 3.9.17"],"provider":"cvelistv5","source":"CVE-2023-30547","relation":"self"},{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.9.16"}]}],"provider":"nvd","source":"CVE-2023-30547","relation":"self"},{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.17"}]}],"fixed":["3.9.17"],"provider":"osv","source":"GHSA-ch3r-j5x3-6q2m","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-30547"}],"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-30547","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-30547","license":"CC-BY-4.0","published_at":"2023-04-17T21:42:10.514Z","modified_at":"2025-02-05T20:30:17.472Z","summary":"Sandbox Escape in vm2","details":"vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception inside `handleException()` which can be used to escape the sandbox and run arbitrary code in host context. This vulnerability was patched in the release of version `3.9.17` of `vm2`. There are no known workarounds for this vulnerability. Users are advised to upgrade.","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-30547"}],"affected":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["< 3.9.17"],"provider":"cvelistv5","source":"CVE-2023-30547","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5"},{"type":"WEB","url":"https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244"}]},{"provider":"nvd","source_id":"CVE-2023-30547","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547","severity":[],"affected":[{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.9.16"}]}],"provider":"nvd","source":"CVE-2023-30547","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-ch3r-j5x3-6q2m","relation":"self","url":"https://osv.dev/vulnerability/GHSA-ch3r-j5x3-6q2m","license":"CC-BY-4.0","published_at":"2023-04-20T14:37:53Z","modified_at":"2023-11-08T04:12:25.205008Z","summary":"vm2 Sandbox Escape vulnerability","details":"There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception inside `handleException()` which can be used to escape the sandbox and run arbitrary code in host context.\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.17` of `vm2`.\n\n### Workarounds\nNone.\n\n### References\nPoC - https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244\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-ch3r-j5x3-6q2m"}],"affected":[{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.17"}]}],"fixed":["3.9.17"],"provider":"osv","source":"GHSA-ch3r-j5x3-6q2m","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5"},{"type":"WEB","url":"https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/3.9.17"}]},{"provider":"redhat-vex","source_id":"CVE-2023-30547","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-30547","license":"CC-BY-4.0","published_at":"2023-04-17T00:00:00Z","modified_at":"2023-04-27T05:47:15Z","summary":"vm2: Sandbox Escape when exception sanitization","details":"A flaw was found in the vm2 sandbox. When exception handling is triggered, an unsanitized host is not managed properly. This issue may allow an attacker to bypass the sandbox protections, which can lead to remote code execution on the hypervisor host or the host that is running the sandbox.","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-30547"},{"type":"Red Hat","score":"Critical","source":"CVE-2023-30547"}],"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-30547"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-30547.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-30547"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2187608"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-30547"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m"}]}],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5"},{"type":"WEB","url":"https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/3.9.17"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-30547.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-30547"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2187608"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-30547"}],"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-30547","url":"https://www.cve.org/CVERecord?id=CVE-2023-30547","license":"CC-BY-4.0","modified_at":"2025-02-05T20:30:17.472Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-30547","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547","relation":"self"},{"provider":"osv","source_id":"GHSA-ch3r-j5x3-6q2m","url":"https://osv.dev/vulnerability/GHSA-ch3r-j5x3-6q2m","license":"CC-BY-4.0","modified_at":"2023-11-08T04:12:25.205008Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-30547","url":"https://access.redhat.com/security/cve/CVE-2023-30547","license":"CC-BY-4.0","modified_at":"2023-04-27T05:47:15Z","relation":"self"}]}
