patriksimek vm2
cpe:2.3:a:vm2_project:vm2:*:*:*:*:node.js:*:*
- <= 3.10.4
A critical vulnerability allowing sandbox escape and arbitrary code execution has been identified in vm2 versions through 3.10.4. The issue arises from the handling of `SuppressedError`, which can be exploited to escape the sandbox environment.
Exploitation of this vulnerability allows for arbitrary code execution outside of the intended sandbox environment.
To reproduce this vulnerability, create a new VM instance using vm2. Then, run a script that creates a `DisposableStack` and uses it to throw a `SuppressedError`. This error can be manipulated to extract the `process` object, which can then be used to execute arbitrary commands, such as `echo pwned` using `execSync`. This proof-of-concept demonstrates how the vulnerability can be exploited to escape the sandbox and execute code on the host system.
Users are advised to upgrade to vm2 version 3.11.0 or later, where this vulnerability has been patched.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.