# CVE-2023-29017: vm2 Sandbox Escape vulnerability

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 63.2%, higher than 99% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-04-06T19:18:34.243Z
- Modified: 2026-09-10T03:49:53.632Z
- Also known as: GHSA-7jxr-cg7f-gpgv
- Weaknesses: CWE-913
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- patriksimek vm2: < 3.9.15
- vm2 (npm): before 3.9.15
- vm2_project vm2: before 3.9.15

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/patriksimek/vm2/issues/515> (exploit, issue-tracking, web)
- <https://gist.github.com/seongil-wi/2a44e082001b959bfe304b62121fb76d> (exploit, web)
- <https://github.com/patriksimek/vm2/security/advisories/GHSA-7jxr-cg7f-gpgv> (vendor-advisory, web)
- <https://github.com/patriksimek/vm2/commit/d534e5785f38307b70d3aac1945260a261a94d50> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-29017> (advisory)
- <https://github.com/patriksimek/vm2> (package)

## Sources

- CVE List: [CVE-2023-29017](https://www.cve.org/CVERecord?id=CVE-2023-29017), CVE Terms of Use, modified 2025-02-10
- GitHub Advisory Database: [GHSA-7jxr-cg7f-gpgv](https://github.com/advisories/GHSA-7jxr-cg7f-gpgv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-29017](https://nvd.nist.gov/vuln/detail/CVE-2023-29017), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-29017 · Whole record: https://cve.day/CVE-2023-29017.json · Rebuilt by cve.day 2026-11-25T22:58:23.304Z
