CVE-2023-32314: Sandbox Escape

Published May 15, 2023
·
Updated

A flaw was found in the vm2 sandbox. When a host object is created based on the specification of Proxy, an attacker can bypass the sandbox protections. This may allow an attacker to run remote code execution on the host running the sandbox. This vulnerability impacts the confidentiality, integrity, and availability of the system.

Other sources

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.

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 Software

3 affected componentsFixes available
npm/vm2<3.9.18
3.9.18
redhat/vm2<3.9.18
3.9.18
Vm2 Project Vm2 Node.js<3.9.18

Remediation

Information

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Event History

May 15, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·07:46 PM
Data Sourced
via MITRE·07:46 PM
DescriptionSeverityWeakness
Advisory Published
08:50 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2023-32314?

CVE-2023-32314 has been classified with a high severity due to the potential for remote code execution.

2

How do I fix CVE-2023-32314?

To mitigate CVE-2023-32314, upgrade vm2 to version 3.9.18 or later.

3

Which software versions are affected by CVE-2023-32314?

CVE-2023-32314 affects vm2 versions up to but not including 3.9.18.

4

What type of attack does CVE-2023-32314 allow?

CVE-2023-32314 allows attackers to bypass sandbox protections, potentially enabling remote code execution.

5

Who is impacted by CVE-2023-32314?

Users and applications utilizing affected versions of vm2 are at risk due to CVE-2023-32314.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203