# CVE-2023-29199: vm2 Sandbox escape vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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): 3.85%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-12T20:42:44.000Z
- Modified: 2026-06-17T05:49:35.597Z
- Also known as: GHSA-xj72-wvfv-8985
- Weaknesses: CWE-913
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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`.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: 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`
- 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 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c> (exploit, third-party-advisory, web)
- <https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985> (vendor-advisory, web)
- <https://github.com/patriksimek/vm2/issues/516> (issue-tracking, patch, web)
- <https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7> (patch, web)
- <https://github.com/patriksimek/vm2/releases/tag/3.9.16> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-29199> (advisory)
- <https://github.com/patriksimek/vm2> (package)

## Sources

- CVE List: [CVE-2023-29199](https://www.cve.org/CVERecord?id=CVE-2023-29199), CVE Terms of Use, modified 2025-02-06
- GitHub Advisory Database: [GHSA-xj72-wvfv-8985](https://github.com/advisories/GHSA-xj72-wvfv-8985), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-29199](https://nvd.nist.gov/vuln/detail/CVE-2023-29199), Public domain, modified 2026-06-17

---

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