Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2023-37903 EUVD-2023-2054GHSA-g644-9gfx-q4q4

Sandbox Escape in vm2

Published Jul 21, 2023 · Updated Nov 3, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
patriksimek vm2 <= 3.9.19 —

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 1 repository

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.19 — GHSA-g644-9gfx-q4q4

Advisories 1

References