9.8critical
Sandbox Escape in vm2
- Severity
- 9.8critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 4.21% (higher than 91% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-g644-9gfx-q4q4
Description
vm2 is an open source vm/sandbox for Node.js. In vm2 for versions up to and including 3.9.19, Node.js custom inspect function allows attackers to escape the sandbox and run arbitrary code. This may result in Remote Code Execution, assuming the attacker has arbitrary code execution primitive inside the context of vm2 sandbox. There are no patches and no known workarounds. Users are advised to find an alternative software.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| patriksimek vm2 | <= 3.9.19 | CVE List |
| vm2 (npm) | up to 3.9.19 | GitHub Advisory Database |
| vm2_project vm2 | up to 3.9.19 | 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
What each source says
CVE List
vm2 is an open source vm/sandbox for Node.js. In vm2 for versions up to and including 3.9.19, Node.js custom inspect function allows attackers to escape the sandbox and run arbitrary code. This may result in Remote Code Execution, assuming the attacker has arbitrary code execution primitive inside the context of vm2 sandbox. There are no patches and no known workarounds. Users are advised to find an alternative software.
GitHub Advisory Database
In vm2 for versions up to 3.9.19, Node.js custom inspect function allows attackers to escape the sandbox and run arbitrary code.
Impact
Remote Code Execution, assuming the attacker has arbitrary code execution primitive inside the context of vm2 sandbox.
Patches
None.
Workarounds
None.
References
PoC is to be disclosed on or after the 5th of September.
Similarity with CVE-2023-37466
While this advisory might look similar to CVE-2023-37466, it is a completely different way of escaping the sandbox.
For more information
If you have any questions or comments about this advisory:
- Open an issue in VM2
Thanks to Xion (SeungHyun Lee) of KAIST Hacking Lab for disclosing this vulnerability.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-37903 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g644-9gfx-q4q4 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2023-37903 changed 2026-06-17 | Public domain |