CVE-2023-37903
Sandbox Escape in vm2
Reported by github_m · Published July 21, 2023
vm2 is fixed in 3.9.19 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vm2 | npm | 3.9.19 |
| vm2 | vm2_project | 3.9.19 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| patriksimek | vm2 | <= 3.9.19 |
| patriksimek | vm2 | 0 |
| npm | vm2 | 0 |
Timeline
- Jul 13, 2023 CVE Published
- Jul 22, 2023 EPSS Score (30 in total, the first dated here)
- Feb 9, 2026 Security Advisory (7 in total, the first dated here)
- Mar 21, 2026 Distribution Patch (6 in total, the first dated here)
- Aug 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-37903
vulnetix vdb fixes CVE-2023-37903
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-37903/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/patriksimek/vm2/security/advisories/GHSA-g644-9gfx-q4q4 x_refsource_CONFIRM
- CVE-2023-37903 exploit
- https://security.netapp.com/advisory/ntap-20241108-0002/ url
- https://nvd.nist.gov/vuln/detail/CVE-2023-37903 advisory
- https://github.com/advisories/GHSA-g644-9gfx-q4q4 advisory
- https://github.com/patriksimek/vm2 url
- https://security.netapp.com/advisory/ntap-20230831-0007 advisory
- https://security.netapp.com/advisory/ntap-20241108-0002 advisory