CVE-2023-37466 vm2 Sandbox Escape vulnerability
Attackers can bypass sandbox restrictions to execute arbitrary code within the vm2 Node.js library environment.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-37466?
CVE-2023-37466 is a critical code injection vulnerability in patriksimek vm2, published on 13 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
vm2 is an advanced vm/sandbox for Node.js. The library contains critical security issues and should not be used for production. The maintenance of the project has been discontinued. In vm2 for versions up to 3.9.19, `Promise` handler sanitization can be bypassed with the `@@species` accessor property allowing attackers to escape the sandbox and run arbitrary code, potentially allowing remote code execution inside the context of vm2 sandbox. Version 3.10.0 contains a patch for the issue.
Weakness: CWE-94
Which versions are affected by CVE-2023-37466?
2 open source packages ship an affected version, including vm2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
vm2 npm | All versions | 3.10.0 |
vm2 npm | All versions | 3.10.0 |
Products include Vm2 Project Vm2.
How do I fix CVE-2023-37466?
Upgrade vm2 to 3.10.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-37466 being exploited?
There is no known exploitation of CVE-2023-37466 in the wild and no public exploit code.
Other vulnerabilities in patriksimek vm2
Sources
Also known as GHSA-cchq-frgv-rjh5, ROOT-APP-NPM-CVE-2023-37466.