CVE-2026-93603 vm2 before 3.12.1 Sandbox Escape RCE via Non-Strict Host Function
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- Red Hat
Description
vm2 through 3.12.0 (fixed in 3.12.1) does not correctly handle a nullish this receiver in the apply trap of its bridge (lib/bridge.js): when sandboxed code calls a host-provided non-strict (sloppy-mode) function without a receiver — e.g. fn(), a detached method, fn.call(), fn.apply(undefined), Reflect.apply(fn, undefined, []), or fn.bind()() — the undefined receiver is passed straight through to the host call, and V8 substitutes the host realm's global object for this. vm2 then wraps and returns that object to the sandbox, giving sandboxed script a live proxy of the host global. This allows a complete sandbox escape: untrusted script can reach process and execute arbitrary code/commands on the host (for example via process.getBuiltinModule('child_process').execSync). Exploitation requires that the embedding application expose at least one non-strict host function to the sandbox; strict-mode and ES module host functions are not affected.
Upgrade path
8 packages: 1 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/ansible-automation-platform/automation-portal:1791293780(Red Hat ansible_portal 2.2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-portal:1791295379(Red Hat ansible_portal 2.1) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9:1791865660(Red Hat ansible_portal 2.2 el9) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend:1791242697(Red Hat rhdh 1.10 el9) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend:1791251282(Red Hat rhdh 1.10 el9) | All versions | No fix listed | No fix yet |
| redhat/rhdh/rhdh-hub-rhel9:1791311495(Red Hat rhdh 1.10 el9) | All versions | No fix listed | No fix yet |
| redhat/rhdh/rhdh-hub-rhel9:1793117813(Red Hat rhdh 1.9 el9) | All versions | No fix listed | No fix yet |
| npm vm2 | < 3.12.1 | 3.12.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/ansible-automation-platform/automation-portal:1791295379(Red Hat:ansible_portal:2.1) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal:1791293780(Red Hat:ansible_portal:2.2) | All versions | No fix listed |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9:1791865660(Red Hat:ansible_portal:2.2::el9) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend:1791242697(Red Hat:rhdh:1.10::el9) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend:1791251282(Red Hat:rhdh:1.10::el9) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9:1791311495(Red Hat:rhdh:1.10::el9) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9:1793117813(Red Hat:rhdh:1.9::el9) | All versions | No fix listed |
| npm vm2 | < 3.12.1 | 3.12.1 |
References
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:80603 patch vendor-advisory
- RHSA-2026:80644 patch vendor-advisory
- RHSA-2026:82151 patch vendor-advisory
- RHSA-2026:76788 patch vendor-advisory
- RHSA-2026:79088 patch vendor-advisory
- RHSA-2026:91651 patch vendor-advisory
- Red Hat Bugzilla 2537857 issue-tracking
- www.cve.org
- nvd.nist.gov
- GitHub Security Advisory (GHSA-j89j-5m6r-cr2q) exploit vendor-advisory
- VulnCheck Advisory: vm2 before 3.12.1 Sandbox Escape RCE via Non-Strict Host Function third-party-advisory
- ENISA EUVD EUVD-2026-82898 third-party-advisory