# CVE-2023-30547: Sandbox Escape in vm2

- 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): 10.0%, higher than 96% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-04-17T21:42:10.514Z
- Modified: 2026-06-17T05:54:59.793Z
- Also known as: GHSA-ch3r-j5x3-6q2m
- Weaknesses: CWE-74
- 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. 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.

(As written by CVE List.)

## Affected

- patriksimek vm2: < 3.9.17
- vm2 (npm): before 3.9.17
- vm2_project vm2: up to 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://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m> (exploit, vendor-advisory, web)
- <https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244> (exploit, third-party-advisory, web)
- <https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049> (patch, web)
- <https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30547> (advisory)
- <https://github.com/patriksimek/vm2> (package)
- <https://github.com/patriksimek/vm2/releases/tag/3.9.17> (web)

## Sources

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

---

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