CVE-2026-24781
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-05-04
- Last modified
- 2026-10-26
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Scored by
- security-advisories@github.com
- Probability of exploitation
-
1.2 %
higher than 65 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Vm2 Project | Vm2 | < 3.11.0 | Affected |
Weakness type
-
CWE-653: Improper Isolation or Compartmentalization
The product does not properly compartmentalize or isolate functionality, processes, or resources that require different privilege levels, rights, or permissions.
-
CWE-693: Protection Mechanism Failure
The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.
-
CWE-94: Improper Control of Generation of Code
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or b…
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1027.006: HTML Smuggling
- T1027.009: Embedded Payloads
- T1040: Network Sniffing
- T1083: File and Directory Discovery
- T1564.009: Resource Forking
- T1565.002: Transmitted Data Manipulation
- T1574.005: Executable Installer File Permissions Weakness
- T1574.010: Services File Permissions Weakness
- T1611: Escape to Host
References
- https://github.com/patriksimek/vm2/commit/8d30d93213c1898b3e035298b89a814970dd1189
- https://github.com/patriksimek/vm2/commit/bdd3d15e57bc4ec5e70365cd79f7cb0256e5f88c
- https://github.com/patriksimek/vm2/commit/fd266d084e0a3322d0f71ba2a8dc4c96cd030228
- https://github.com/patriksimek/vm2/releases/tag/v3.11.0
- https://github.com/patriksimek/vm2/security/advisories/GHSA-v37h-5mfm-c47c
- https://access.redhat.com/errata/RHSA-2026:26234
- https://access.redhat.com/errata/RHSA-2026:36754
- https://access.redhat.com/security/cve/CVE-2026-24781
- https://bugzilla.redhat.com/show_bug.cgi?id=2466531
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24781.json
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.