Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, sandboxed code can call Buffer.alloc() with an arbitrary size to allocate memory directly on the host heap. Because Buffer.alloc is a synchronous C++ native call, vm2's timeout option cannot interrupt it. A single request can exhaust host memory and crash the process with a FATAL ERROR: Reached heap limit. This vulnerability is fixed in 3.11.0.
Published: 2026-05-13
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows sandboxed code to invoke Buffer.alloc with an arbitrary size, allocating memory on the host heap. Because Buffer.alloc is a synchronous native call, the vm2 timeout mechanism cannot interrupt it, leading to uncontrolled memory consumption. A single malicious request can exhaust host memory and cause the Node.js process to crash with a FATAL ERROR, resulting in a denial‑of‑service.

Affected Systems

This flaw affects all versions of the open‑source vm2 sandbox for Node.js preceding 3.11.0. The product is provided by patriksimek under the vm2 name.

Risk and Exploitability

The CVSS score is 7.5, indicating high impact with potential for significant disruption. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting limited publicly known exploitation. Based on the description, it is inferred that the attack vector involves delivering a crafted payload to an untrusted sandbox context that calls Buffer.alloc with a large size; no authentication or privileged access is required beyond normal sandbox usage.

Generated by OpenCVE AI on May 13, 2026 at 20:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade vm2 to version 3.11.0 or later, which removes the ability to allocate large buffers from the host process.
  • If updating is not immediately possible, restrict the use of Buffer.alloc in sandboxed code or enforce a hard memory limit via Node.js –e.g., --max-old-space-size.
  • Consider disabling or tightly restricting sandbox features that allow arbitrary Buffer.alloc usage, or isolate the sandbox into a separate process with controlled memory limits.

Generated by OpenCVE AI on May 13, 2026 at 20:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6785-pvv7-mvg7 vm2 Sandbox Access to Host Buffer.alloc Allows timeout Bypass Resulting in Memory Exhaustion
History

Thu, 14 May 2026 15:30:00 +0000

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

Wed, 13 May 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Patriksimek
Patriksimek vm2
Vendors & Products Patriksimek
Patriksimek vm2

Wed, 13 May 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 13 May 2026 18:00:00 +0000

Type Values Removed Values Added
Description vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, sandboxed code can call Buffer.alloc() with an arbitrary size to allocate memory directly on the host heap. Because Buffer.alloc is a synchronous C++ native call, vm2's timeout option cannot interrupt it. A single request can exhaust host memory and crash the process with a FATAL ERROR: Reached heap limit. This vulnerability is fixed in 3.11.0.
Title vm2: Host Process OOM DoS via Buffer.alloc (Timeout Bypass)
Weaknesses CWE-770
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-13T18:19:28.423Z

Reserved: 2026-05-04T21:24:36.505Z

Link: CVE-2026-44004

cve-icon Vulnrichment

Updated: 2026-05-13T18:08:08.236Z

cve-icon NVD

Status : Analyzed

Published: 2026-05-13T18:16:17.123

Modified: 2026-05-14T15:22:06.020

Link: CVE-2026-44004

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-13T20:15:04Z

Weaknesses