CVE-2026-24118: CWE-94: Improper Control of Generation of Code ('Code Injection') in patriksimek vm2
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.
AI Analysis
Technical Summary
CVE-2026-24118 is a critical sandbox breakout vulnerability in the vm2 Node.js sandbox prior to version 3.11.0. It stems from improper control of code generation (CWE-94), allowing attackers to inject and execute arbitrary code outside the sandbox environment on the host system. This vulnerability enables full compromise of the host via code execution. The issue was fixed in vm2 version 3.11.0.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary commands on the host system by escaping the vm2 sandbox. This leads to full confidentiality, integrity, and availability impact on the host environment running the vulnerable vm2 versions.
Mitigation Recommendations
Upgrade vm2 to version 3.11.0 or later, where this vulnerability has been patched. No other mitigation is indicated or required as the fix is available in the official release.
CVE-2026-24118: CWE-94: Improper Control of Generation of Code ('Code Injection') in patriksimek vm2
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-24118 is a critical sandbox breakout vulnerability in the vm2 Node.js sandbox prior to version 3.11.0. It stems from improper control of code generation (CWE-94), allowing attackers to inject and execute arbitrary code outside the sandbox environment on the host system. This vulnerability enables full compromise of the host via code execution. The issue was fixed in vm2 version 3.11.0.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary commands on the host system by escaping the vm2 sandbox. This leads to full confidentiality, integrity, and availability impact on the host environment running the vulnerable vm2 versions.
Mitigation Recommendations
Upgrade vm2 to version 3.11.0 or later, where this vulnerability has been patched. No other mitigation is indicated or required as the fix is available in the official release.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-01-21T18:38:22.472Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f8d213cbff5d8610396f3a
Added to database: 5/4/2026, 5:06:27 PM
Last enriched: 5/4/2026, 5:23:02 PM
Last updated: 5/5/2026, 5:58:04 AM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.