Skip to content
OpenAdvisories
Critical · 10.0 Public exploit CVE-2023-29017 EUVD-2023-1229GHSA-7jxr-cg7f-gpgv

vm2 Sandbox Escape vulnerability

Published Apr 6, 2023 · Updated Feb 10, 2025 · Assigned by GitHub_M

Description

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Prior to version 3.9.15, vm2 was not properly handling host objects passed to `Error.prepareStackTrace` in case of unhandled async errors. A threat actor could 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.15 of vm2. There are no known workarounds.

Affected products

VendorProductAffectedFixed
patriksimek vm2 < 3.9.15 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm vm2 < 3.9.15 3.9.15 GHSA-7jxr-cg7f-gpgv

Advisories 1

References