CVE-2026-92947
JSON

10.0critical

vm2 before 3.11.7 Memory Disclosure via Buffer Pool

Severity
10.0critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.43% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-fcqc-726x-5wfc

Description

vm2 before 3.11.7 exposes Node's shared Buffer pool to sandboxed code, allowing disclosure of host memory used by Buffer.from, Buffer.concat, and related allocations. Sandboxed code can read and write to host-realm buffers by acquiring ArrayBuffers from small allocations, leading to sensitive data exposure and potential denial-of-service.

Affected

Product or packageVersionsReported by
patriksimek vm2before 3.11.7
Not affected: 3.11.7
CVE List
vm2 (npm)before 3.11.7GitHub Advisory Database

All scores

VulnCheck10.0critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L
VulnCheck10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
GitHub10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L

Classification

CWE-200CWE-653CWE-668

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

vm2 before 3.11.7 exposes Node's shared Buffer pool to sandboxed code, allowing disclosure of host memory used by Buffer.from, Buffer.concat, and related allocations. Sandboxed code can read and write to host-realm buffers by acquiring ArrayBuffers from small allocations, leading to sensitive data exposure and potential denial-of-service.

GitHub Advisory Database
Summary

Sandboxed code is able to disclose host memory used by small allocations by Buffer.from, Buffer.concat.

Details

vm2 exposes Buffer object to sandboxed code by default. Small Buffer allocations (for example, Buffer.allocUnsafe(), Buffer.from(array), Buffer.from(string), and Buffer.concat()) use the same Buffer pool, which is shared with the sandbox. This allows sandboxed code to disclose host memory used by the functions listed above.

PoC

Tested against vm2@3.11.5 in the node REPL.

Buffer.from('host-memory-should-not-leak-to-sandbox')
new (require('vm2').VM)().run(`Buffer.from(Buffer.from([0]).buffer, 0, Buffer.from([0]).buffer.byteLength).toString('ascii')`)
Screenshot 2026-07-23 at 17 54 15
Impact

Since sandbox acquires an ArrayBuffer that is used by the host, it can disclose sensitive data going through functions mentioned above and even write to these buffers, which can lead to sensitive data exposure and potentially denial-of-service.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-92947 changed 2026-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-fcqc-726x-5wfc changed 2026-10-05CC-BY-4.0
NVDCVE-2026-92947 changed 2026-09-17Public domain