CVE-2026-24118: VM2 Sandbox Breakout Through __lookupGetter__
Affects vm2Source GCVE Database
Not known to be exploited · CVSS 9.8 Critical : upgrade to 3.11.0 as a priority.
Data as of 27 Oct 2026, 03:04 UTC
- Patch
- Available – fixed in 3.11.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 4 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade vm2 to 3.11.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmvm2 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in VM2 version 3.11.0 that fixes this vulnerability. Users should upgrade to version 3.11.0 or later to remediate this issue. No other mitigations are indicated by the vendor advisory.
Description
VM2 versions prior to 3.11.0 contain a sandbox breakout vulnerability via the __lookupGetter__ method. This flaw allows attackers executing code inside the VM2 sandbox to escape it and run arbitrary commands on the host system. The vulnerability arises from the ability to access host context getters through a crafted call sequence involving Buffer.apply and prototype manipulation. Although a prior fix was attempted, it can be bypassed using Object.getOwnPropertyDescriptor to access the constructor property and execute host code. The vulnerability has a critical CVSS score of 9.8 and is fixed in VM2 version 3.11.0.
References
- github.com/patriksimek/vm2/security/advisories/GHSA-grj5-jjm8-h35p (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-24118 (opens in a new tab)
- github.com/patriksimek/vm2/commit/2b5f3e3a060d9088f5e1cdd585d683d491f990a3 (opens in a new tab)
- github.com/patriksimek/vm2/commit/f9b700b1c7d9ef2df416666cb24e0b659140cc74 (opens in a new tab)
- github.com/patriksimek/vm2 (opens in a new tab)
- github.com/patriksimek/vm2/releases/tag/v3.11.0 (opens in a new tab)