CVE-2026-24781: 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 through the inspect function. 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-24781 is a critical vulnerability in the vm2 Node.js sandbox prior to version 3.11.0. It involves improper control of code generation (CWE-94) that enables sandbox breakout through the inspect function. Exploitation allows arbitrary command execution on the host system, bypassing the sandbox protections. The vulnerability has been addressed and fixed in vm2 version 3.11.0. Red Hat has published advisories referencing this CVE and the fix.
Potential Impact
Successful exploitation of this vulnerability allows an attacker with access to the vm2 sandbox to escape it and execute arbitrary commands on the host system. This can lead to full system compromise, including confidentiality, integrity, and availability impacts as reflected by the CVSS score of 9.8 (critical).
Mitigation Recommendations
A fix is available in vm2 version 3.11.0. Users should upgrade to version 3.11.0 or later to remediate this vulnerability. Red Hat advisories provide additional guidance and updates related to this issue. No alternative mitigations are indicated in the vendor advisory.
CVE-2026-24781: 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 through the inspect function. 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.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-24781 is a critical vulnerability in the vm2 Node.js sandbox prior to version 3.11.0. It involves improper control of code generation (CWE-94) that enables sandbox breakout through the inspect function. Exploitation allows arbitrary command execution on the host system, bypassing the sandbox protections. The vulnerability has been addressed and fixed in vm2 version 3.11.0. Red Hat has published advisories referencing this CVE and the fix.
Potential Impact
Successful exploitation of this vulnerability allows an attacker with access to the vm2 sandbox to escape it and execute arbitrary commands on the host system. This can lead to full system compromise, including confidentiality, integrity, and availability impacts as reflected by the CVSS score of 9.8 (critical).
Mitigation Recommendations
A fix is available in vm2 version 3.11.0. Users should upgrade to version 3.11.0 or later to remediate this vulnerability. Red Hat advisories provide additional guidance and updates related to this issue. No alternative mitigations are indicated in the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-01-26T21:06:47.869Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-24781","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26234","vendor":"Red Hat"}]
Threat ID: 69f8d216cbff5d861039702c
Added to database: 05/04/2026, 17:06:30 UTC
Last enriched: 07/17/2026, 08:49:29 UTC
Last updated: 08/02/2026, 07:17:56 UTC
Views: 168
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.