Skip to content

CVE-2026-92935 vm2 NodeVM Remote Code Execution via Array-Shaped Require

CriticalCVSS 9.5 EPSS 0.64%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
Red Hat

Description

vm2 is a sandbox for running untrusted Node.js code. In versions >= 3.11.4 and <= 3.11.6, the NodeVM constructor computes hasRealRequireConfig with typeof requireOpts === 'object' && requireOpts !== null, so an array-shaped require value (for example require: []) satisfies the guard that is meant to reject nesting without an explicit require configuration. makeResolverFromLegacyOptions() then destructures the array into undefined option fields and returns a resolver containing only NESTING_OVERRIDE.vm2. As a result, an attacker who can supply JavaScript executed by a NodeVM configured with truthy nesting and an array-shaped require (e.g. new NodeVM({nesting: true, require: []})) can require the host vm2 module, create an inner NodeVM with an attacker-chosen builtin allowlist (such as child_process), and execute arbitrary commands with the privileges of the host Node.js process, escaping the sandbox. Outer builtin restrictions do not constrain the attacker-created inner NodeVM. This issue is fixed in vm2 3.11.7.

Upgrade path

9 packages: 2 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
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.11.4, < 3.11.7 3.11.7 Fixed
npm vm2(npm) >= 3.11.4, < 3.11.7; >= 3.11.4, <= 3.11.6 3.11.7 Fixed

Affected products

ProductAffected versionsFixed in
npm vm2 >= 3.11.4, < 3.11.7 3.11.7
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(npm) >= 3.11.4, <= 3.11.6 No fix listed
npm vm2(npm) >= 3.11.4, < 3.11.7 3.11.7

References