vm2 Exception Sanitization Sandbox Escape
CVE-2023-30547 is a critical sandbox-escape vulnerability in vm2 versions through 3.9.16. Insufficient exception sanitization permits sandboxed code to raise an unsanitized host exception within vm2's handleException() processing path. The host-context exception can be abused to bypass the vm2 isolation boundary and execute attacker-controlled code in the host Node.js context.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation escapes the vm2 sandbox and enables arbitrary code execution in the host context. An attacker may execute operating-system commands with the privileges of the Node.js process, access host-process resources available to that process, and compromise the confidentiality, integrity, and availability of the hosting environment.
If you can’t patch tonight, do this now.
No known workaround is available. Until upgrading, do not execute attacker-controlled or untrusted JavaScript with affected vm2 releases. Where untrusted-code execution is unavoidable, enforce an independent process-, container-, or virtual-machine-level isolation boundary and least-privilege execution.
Patch, then assume compromise.
Upgrade vm2 to version 3.9.17 or later, which patches the exception-sanitization flaw.
2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.