Skip to content

CVE-2026-92942 vm2 before 3.11.7 Timeout Bypass via FinalizationRegistry

HighCVSS 8.7 EPSS 0.49%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
Red Hat

Description

vm2 before 3.11.7 (affected versions <= 3.11.6) does not enforce the VM({ timeout }) option on code executed outside the synchronous VM#run() call. The timeout only wraps the single call to _runScript() via doWithTimeout() in lib/vm.js, and FinalizationRegistry and WeakRef are exposed to sandboxed code unmodified (they are not among the hardened globals in lib/setup-sandbox.js). Sandboxed code can register a FinalizationRegistry cleanup callback against an object and then drop the only strong reference to it; vm.run() returns within the configured timeout, but when the V8 garbage collector later reclaims the object it invokes the sandboxed cleanup callback outside any vm2 timeout accounting. A busy loop in that callback blocks the host event loop for an unbounded period, resulting in denial of service. The time of invocation depends on the garbage collector (e.g. under memory pressure or with --expose-gc).

Upgrade path

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

PackageAffectedFixed inStatus
redhat/ansible-automation-platform/automation-portal:1790254963(Red Hat ansible_portal 2.1) All versions No fix listed No fix yet
redhat/ansible-automation-platform/automation-portal:1790256405(Red Hat ansible_portal 2.2) 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.7 3.11.7 Fixed
npm vm2(npm) < 3.11.7; <= 3.11.6 3.11.7 Fixed

Affected products

ProductAffected versionsFixed in
npm vm2 < 3.11.7 3.11.7
redhat/ansible-automation-platform/automation-portal:1790254963(Red Hat:ansible_portal:2.1) All versions No fix listed
redhat/ansible-automation-platform/automation-portal:1790256405(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.6 No fix listed
npm vm2(npm) < 3.11.7 3.11.7

References