CVE-2023-37903
vm2: custom inspect function allows attackers to escape the sandbox and run arbitrary code
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium).
Description
vm2 is an open source vm/sandbox for Node.js. In vm2 for versions up to and including 3.9.19, Node.js custom inspect function allows attackers to escape the sandbox and run arbitrary code. This may result in Remote Code Execution, assuming the attacker has arbitrary code execution primitive inside the context of vm2 sandbox. There are no patches and no known workarounds. Users are advised to find an alternative software.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | vm2 | no fix listed |
| seal npm::Seal Security Database | @seal-security/vm2, vm2 | 3.9.11-sp999, 3.9.12-sp999, 3.9.13-sp999, 3.9.14-sp999 |
Show all 3 entries from 2 sources
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | vm2 | no fix listed |
| seal npm::Seal Security Database | @seal-security/vm2 | 3.9.11-sp999, 3.9.12-sp999, 3.9.13-sp999, 3.9.14-sp999 |
| seal npm::Seal Security Database | vm2 | 3.9.11-sp999, 3.9.12-sp999, 3.9.13-sp999, 3.9.14-sp999 |
References
- https://access.redhat.com/security/cve/CVE-2023-37903
- https://github.com/patriksimek/vm2
- https://github.com/patriksimek/vm2/security/advisories/GHSA-g644-9gfx-q4q4
- https://nvd.nist.gov/vuln/detail/CVE-2023-37903
- https://security.netapp.com/advisory/ntap-20230831-0007
- https://security.netapp.com/advisory/ntap-20230831-0007/
- https://security.netapp.com/advisory/ntap-20241108-0002
- https://security.netapp.com/advisory/ntap-20241108-0002/