CVE-2026-100723: vm2 before 3.12.2 Memory Disclosure via zlib Buffer Pool

Published Sep 27, 2026
·
Updated

vm2 before 3.12.2 does not apply its Buffer backing-store ownership invariant (byteOffset === 0 and buffer.byteLength === length) to Buffers returned from host builtin modules. When an application explicitly exposes Node's zlib module through NodeVM's builtin allowlist (require: { builtin: ['zlib'] }), zlib.deflateSync can return a Buffer backed by Node's shared small-buffer pool whose .buffer is the entire pool. Untrusted guest code can construct a full-width view of that ArrayBuffer (Buffer.from(result.buffer, 0, result.buffer.byteLength)) to read and modify bytes belonging to unrelated host buffers, disclosing and corrupting host-realm memory across the sandbox boundary.

Affected Software

1 affected component
npm/vm2<3.12.2

Event History

Sep 27, 2026
CVE Published
via MITRE·01:28 AM
Data Sourced
via MITRE·01:28 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using vm2 before 3.12.2 are exposed when they explicitly allow the Node.js zlib builtin in a NodeVM configuration with require: { builtin: ['zlib'] }. The issue requires untrusted guest code to be executed in that sandbox.

2

What must an attacker do to exploit it?

An attacker needs the ability to run guest code in the affected NodeVM and access the explicitly allowlisted zlib module. They can use zlib.deflateSync to obtain a pooled Buffer, then create a full-width Buffer view over its underlying ArrayBuffer.

3

Is the default NodeVM builtin configuration affected?

The described exposure depends on an application explicitly adding zlib to NodeVM's builtin allowlist. The provided information does not indicate that zlib is available without that explicit configuration.

4

What is the impact if exploitation succeeds?

Guest code can read and modify bytes from unrelated host buffers that share Node's small-buffer pool. This can disclose host-realm memory and corrupt data across the sandbox boundary.

5

What can be done if upgrading is not immediately possible?

Remove zlib from the NodeVM builtin allowlist and prevent untrusted guest code from accessing it. This removes the specific host-module path described for obtaining the shared pooled Buffer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203