9.8critical
Sandbox Escape
- Severity
- 9.8critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 8.13% (higher than 94% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-whpj-8f3w-67p5
Description
vm2 is a sandbox that can run untrusted code with Node's built-in modules. A sandbox escape vulnerability exists in vm2 for versions up to and including 3.9.17. It abuses an unexpected creation of a host object based on the specification of `Proxy`. As a result 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.18` of `vm2`. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| patriksimek vm2 | < 3.9.18 | CVE List |
| vm2 (npm) | before 3.9.18 | GitHub Advisory Database |
| vm2_project vm2 | before 3.9.18 | NVD |
All scores
| GitHub_M | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
vm2 is a sandbox that can run untrusted code with Node's built-in modules. A sandbox escape vulnerability exists in vm2 for versions up to and including 3.9.17. It abuses an unexpected creation of a host object based on the specification of `Proxy`. As a result 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.18` of `vm2`. Users are advised to upgrade. There are no known workarounds for this vulnerability.
GitHub Advisory Database
A sandbox escape vulnerability exists in vm2 for versions up to 3.9.17. It abuses an unexpected creation of a host object based on the specification of Proxy.
Impact
A threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox.
Patches
This vulnerability was patched in the release of version 3.9.18 of vm2.
Workarounds
None.
References
PoC - https://gist.github.com/arkark/e9f5cf5782dec8321095be3e52acf5ac
For more information
If you have any questions or comments about this advisory:
- Open an issue in VM2
Thanks to @arkark (Takeshi Kaneko) of GMO Cybersecurity by Ierae, Inc. for disclosing this vulnerability.
References
| https://github.com/patriksimek/vm2/security/advisories/GHSA-whpj-8f3w-67p5 | vendor-advisory, web | |
| https://github.com/patriksimek/vm2/commit/d88105f99752305c5b8a77b63ddee3ec86912daf | patch, web | |
| https://gist.github.com/arkark/e9f5cf5782dec8321095be3e52acf5ac | exploit, third-party-advisory, web | |
| https://github.com/patriksimek/vm2/releases/tag/3.9.18 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-32314 | advisory | |
| https://github.com/patriksimek/vm2 | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-32314 changed 2025-01-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-whpj-8f3w-67p5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-32314 changed 2026-06-17 | Public domain |