CVE-2026-92939
9.9patriksimek · vm2
A sandbox escape vulnerability in vm2 allows authenticated attackers to execute arbitrary native code on the host system via the Node.js crypto module.
Executive summary
The vm2 sandbox library is vulnerable to a critical sandbox escape and remote code execution flaw that allows attackers to execute arbitrary native code on the host process.
Vulnerability
This vulnerability, categorized as CWE-114 (Process Control), occurs because the NodeVM sandbox fails to restrict host-process authority for the crypto module. An authenticated attacker can invoke crypto.setEngine() with a malicious path to trigger the execution of native code via the operating system dynamic loader.
Business impact
Successful exploitation leads to a complete sandbox escape, granting an attacker full control over the host process. Given the CVSS score of 9.9, this represents a critical risk that could lead to full system compromise, data theft, and unauthorized persistence within the infrastructure.
Remediation
Immediate Action: Update the patriksimek vm2 package to version 3.11.7 or higher immediately to apply the necessary security constraints on the crypto module.
Proactive Monitoring: Audit applications using vm2 for calls to the crypto module, specifically monitoring for unusual filesystem access or unexpected dynamic library loading patterns.
Compensating Controls: If immediate patching is not feasible, restrict the availability of the crypto builtin within NodeVM configurations to prevent access to the vulnerable setEngine functionality.
Exploitation status
Public Exploit Available: Unknown.
Analyst recommendation
This vulnerability poses a severe threat to any environment relying on vm2 for process isolation. Security teams should prioritize updating to version 3.11.7 across all development and production environments. Failure to address this flaw could result in a total compromise of the host environment, making immediate remediation essential.
More patriksimek CVEs all →
History
- Disclosed CVE record published
- Collected by CVE Brief via github
- Analyst report written
- Published in the daily brief critical section
Sources
Originally found and disclosed by Forrof, per the CVE Program record.
- GitHub Security Advisory (GHSA-46pr-c5wc-xffx) Vendor advisory
- VulnCheck Advisory: vm2 3.11.3 through 3.11.6 Native Code Execution via crypto.setEngine Third-party advisory