VM2
VM2 Sandbox Breakout Through __lookupGetter__
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This issue has been patched in version 3.11.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.11.0
Fixed in 3.11.0
Mitigation
Upgrade vm2 to 3.11.0 or later.
References
- Vendor advisory github.com/patriksimek/vm2/security/advisories…
- Patch github.com/patriksimek/vm2/commit/2b5f3e3a060d…
- Patch github.com/patriksimek/vm2/commit/f9b700b1c7d9…
1 more
- Release notes github.com/patriksimek/vm2/releases/tag/v3.11.…
Timeline
Days relative to CVE publicationFirst public PoC 2.5 days after publication; not in CISA KEV. First PoC: HORKimhab/CVE-2026-24118 (created 7 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| HORKimhab/CVE-2026-24118 | 7 May 2026 +2.5 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /execute
- Body markers
"code":""inapplication/json- Ports
- 3000
- Seen in
- 1 repo: HORKimhab/CVE-2026-24118
- Evidence
- HORKimhab/CVE-2026-24118/exploit.js:49
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/execute(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-24118 patriksimek vm2 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/execute"; http.request_body; content:"|22|code|22|:|22||22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-24118; classtype:web-application-attack; sid:9043167; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: patriksimek vm2 exploit attempt (CVE-2026-24118)
id: gg-pocmon-cve-2026-24118-9043167
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-24118. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-24118
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/execute'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.24118