CVE-2026-24781

vm2: Sandbox Breakout Through Inspect

Published May 4, 2026 CVSS 3.1 · 9.8 Critical EPSS 1.2% KEV · Not listed
Description
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability through the inspect function. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This issue has been patched in version 3.11.0.

Analysis

AI-generated

Technical impact

vm2, an open source VM/sandbox for Node.js, has a vulnerability that allows attackers to escape the sandbox through the inspect function. This flaw lets an attacker write and run code that bypasses the VM2 boundary and triggers arbitrary command execution on the host system. The weakness demonstrates improper isolation and code execution controls, which are mapped to CWE‑693, CWE‑94, and CWE‑653.

Affected Systems

The issue affects the patriksimek:vm2 product. Any installation of vm2 prior to version 3.11.0 is vulnerable. Version 3.11.0 and later contain the fix.

Risk and Exploitability

The CVSS score of 9.8 reflects high severity with complete availability, integrity, and confidentiality compromise. The EPSS score of 0.00137 (0.137%) indicates a very low probability of exploitation, but the absence of a KEV listing does not diminish the risk. The likely attack vector is through a Node.js application that incorporates vm2, where an adversary can inject malicious payloads into the inspect interface to break out of the sandbox and execute system commands.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade vm2 to version 3.11.0 or newer to apply the vendor patch that closes the sandbox escape path.
  • If immediate upgrade is not possible, restrict or remove the use of the inspect function in any vm2 instance to mitigate potential exploitation.
  • Review all Node.js applications using vm2 for additional hardening measures, such as limiting filesystem and network access within the VM, to reduce the impact of a possible breach until a patch can be applied.

Generated by OpenCVE AI on May 6, 2026 at 01:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-v37h-5mfm-c47c VM2 Has Sandbox Breakout Through Inspect Function
History
Type Values Removed Values Added
First Time appeared Vm2 Project
Vm2 Project vm2
CPEs cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*
Vendors & Products Vm2 Project
Vm2 Project vm2
Type Values Removed Values Added
First Time appeared Patriksimek
Patriksimek vm2
Vendors & Products Patriksimek
Patriksimek vm2
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability through the inspect function. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This issue has been patched in version 3.11.0.
Title vm2: Sandbox Breakout Through Inspect
Weaknesses CWE-693
CWE-94
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-653

    Improper Isolation or Compartmentalization

  • CWE-693

    Protection Mechanism Failure

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 1:16 AM
Reserved
Jan 26, 2026, 9:06 PM
Status
Modified
Published
May 4, 2026, 5:16 PM
Modified
Oct 26, 2026, 7:10 PM
Severity
Important
Public date
May 4, 2026, 4:33 PM