Vulnerability · Published Jul 13, 2023 · Assigned by GitHub_M
CVE-2023-37466vm2 Sandbox Escape vulnerability
Critical 9.8
In plain English
A critical-severity code injection in vm2 from patriksimek. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.9% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | vm2 | 3.10.0 | GHSA-cchq-frgv-rjh5 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| patriksimek | vm2 | <= 3.9.19 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/patriksimek/vm2/security/advisories/GHSA-cchq-frgv-rjh5 x_refsource_CONFIRM
- https://github.com/patriksimek/vm2/commit/d9a1fde8ec5a5a9c9e5a69bf91d703950859d744 x_refsource_MISC
- https://github.com/patriksimek/vm2/releases/tag/v3.10.0 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20241108-0002/