{"id":"CVE-2023-29199","aliases":["GHSA-xj72-wvfv-8985"],"summary":"vm2 Sandbox escape vulnerability","published_at":"2023-04-08T00:00:00Z","modified_at":"2025-02-06T18:45:07.573Z","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.038520000874996185,"percentile":0.9036999940872192,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15, allowing attackers to bypass `handleException()` and leak unsanitized host exceptions which can be used to escape the sandbox and run arbitrary code in host context. 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.16` of `vm2`.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["< 3.9.16"],"provider":"cvelistv5","source":"CVE-2023-29199","relation":"self"},{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.16"}]}],"fixed":["3.9.16"],"provider":"nvd","source":"CVE-2023-29199","relation":"self"},{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.16"}]}],"fixed":["3.9.16"],"provider":"osv","source":"GHSA-xj72-wvfv-8985","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-29199"}],"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-29199","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-29199","license":"CC-BY-4.0","published_at":"2023-04-14T18:37:03.847Z","modified_at":"2025-02-06T18:45:07.573Z","summary":"vm2 Sandbox escape vulnerability","details":"There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15, allowing attackers to bypass `handleException()` and leak unsanitized host exceptions which can be used to escape the sandbox and run arbitrary code in host context. 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.16` of `vm2`.","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-29199"}],"affected":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["< 3.9.16"],"provider":"cvelistv5","source":"CVE-2023-29199","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/issues/516"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7"},{"type":"WEB","url":"https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/3.9.16"}]},{"provider":"nvd","source_id":"CVE-2023-29199","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29199","severity":[],"affected":[{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.16"}]}],"fixed":["3.9.16"],"provider":"nvd","source":"CVE-2023-29199","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-xj72-wvfv-8985","relation":"self","url":"https://osv.dev/vulnerability/GHSA-xj72-wvfv-8985","license":"CC-BY-4.0","published_at":"2023-04-12T20:42:44Z","modified_at":"2023-11-08T04:12:17.2111Z","summary":"vm2 Sandbox Escape vulnerability","details":"There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15, allowing attackers to bypass `handleException()` and leak unsanitized host exceptions 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.16` of `vm2`.\n\n### Workarounds\nNone.\n\n### References\nGithub Issue - https://github.com/patriksimek/vm2/issues/516\nPoC - https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c\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-xj72-wvfv-8985"}],"affected":[{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.16"}]}],"fixed":["3.9.16"],"provider":"osv","source":"GHSA-xj72-wvfv-8985","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29199"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/issues/516"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7"},{"type":"WEB","url":"https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/3.9.16"}]},{"provider":"redhat-vex","source_id":"CVE-2023-29199","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-29199","license":"CC-BY-4.0","published_at":"2023-04-08T00:00:00Z","modified_at":"2023-07-07T08:30:01Z","summary":"vm2: Sandbox Escape","details":"A flaw was found in the vm2 sandbox. When exception handling is triggered, the sanitization logic is not managed with proper exception handling. 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 which 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-29199"},{"type":"Red Hat","score":"Critical","source":"CVE-2023-29199"}],"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-29199"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-29199.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-29199"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2187409"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-29199"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29199"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985"}]}],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/issues/516"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7"},{"type":"WEB","url":"https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/3.9.16"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29199"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-29199.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-29199"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2187409"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-29199"}],"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-29199","url":"https://www.cve.org/CVERecord?id=CVE-2023-29199","license":"CC-BY-4.0","modified_at":"2025-02-06T18:45:07.573Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-29199","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29199","relation":"self"},{"provider":"osv","source_id":"GHSA-xj72-wvfv-8985","url":"https://osv.dev/vulnerability/GHSA-xj72-wvfv-8985","license":"CC-BY-4.0","modified_at":"2023-11-08T04:12:17.2111Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-29199","url":"https://access.redhat.com/security/cve/CVE-2023-29199","license":"CC-BY-4.0","modified_at":"2023-07-07T08:30:01Z","relation":"self"}]}
