Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.6, the bufferAllocLimit enforcement in lib/setup-sandbox.js does not cover Buffer.concat(list, totalLength) or Buffer.from(arrayLike) with an attacker-controlled length, allowing sandbox code to perform large synchronous host external-memory allocations that bypass the configured cap and can exhaust the host process. This issue is fixed in version 3.11.6.
Published: 2026-08-17
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows code executed within the vm2 sandbox to bypass the configured buffer allocation limit set in lib/setup-sandbox.js. By using Buffer.concat(list,totalLength) or Buffer.from(arrayLike) with an attacker‑controlled length, sandbox code can request large synchronous allocations of host memory. This can exhaust the host process and lead to denial of service. The weakness is a classic Resource Exhaustion flaw identified as CWE‑770.

Affected Systems

The affected product is vm2, an open‑source sandbox for Node.js maintained by patriksimek. All released versions prior to 3.11.6 are impacted; version 3.11.6 and later contain the fix.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity issue, and the vulnerability is not listed in the CISA KEV catalog. EPSS data is unavailable. The likely attack vector is the execution of malicious code inside the vm2 sandbox, where an attacker can supply large arrayLike or totalLength values to trigger the overflow. Since the exploit requires code inside the sandbox, it is a local‑context attack and does not require an external network connection. Successful exploitation can saturate process memory and cause the host Node.js process to terminate or become unresponsive.

Generated by OpenCVE AI on August 18, 2026 at 00:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade vm2 to version 3.11.6 or later, which implements the buffer allocation limit correctly.
  • If an immediate upgrade is not possible, restrict or remove use of Buffer.concat(list,totalLength) and Buffer.from(arrayLike) with attacker‑controlled length in sandbox code, or replace them with a custom wrapper that enforces the host‑configured limit.
  • Monitor host memory usage for the Node.js process and apply operating‑system level resource limits (e.g., ulimit, cgroups) to contain the impact of any excessive allocations.

Generated by OpenCVE AI on August 18, 2026 at 00:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gmc2-2x9w-cgh9 vm2's bufferAllocLimit cap bypassed by Buffer.concat and Buffer.from arrayLike
History

Mon, 17 Aug 2026 23:00:00 +0000

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

Mon, 17 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.6, the bufferAllocLimit enforcement in lib/setup-sandbox.js does not cover Buffer.concat(list, totalLength) or Buffer.from(arrayLike) with an attacker-controlled length, allowing sandbox code to perform large synchronous host external-memory allocations that bypass the configured cap and can exhaust the host process. This issue is fixed in version 3.11.6.
Title vm2: bufferAllocLimit cap bypassed by Buffer.concat and Buffer.from arrayLike
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T20:55:32.019Z

Reserved: 2026-05-19T21:18:20.402Z

Link: CVE-2026-47683

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T21:16:45.363

Modified: 2026-08-17T21:16:45.363

Link: CVE-2026-47683

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T00:15:03Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling