CVE-2023-29017 vm2 Sandbox Escape vulnerability
CriticalCVSS 9.8
EPSS 63.2%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
Description
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Prior to version 3.9.15, vm2 was not properly handling host objects passed to Error.prepareStackTrace in case of unhandled async errors. A threat actor could bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version 3.9.15 of vm2. There are no known workarounds.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm vm2(npm) | < 3.9.15 | 3.9.15 | Fixed |
| vm2 project vm2 | < 3.9.15 | 3.9.15 | Fixed |
| patriksimek vm2 | = < 3.9.15 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm vm2(npm) | < 3.9.15 | 3.9.15 |
| patriksimek vm2 | = < 3.9.15 | No fix listed |
| vm2 project vm2 | < 3.9.15 | 3.9.15 |
References
- https://github.com/patriksimek/vm2/security/advisories/GHSA-7jxr-cg7f-gpgv vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/patriksimek/vm2/issues/515 exploit issue-tracking
- https://github.com/patriksimek/vm2/commit/d534e5785f38307b70d3aac1945260a261a94d50 patch
- https://gist.github.com/seongil-wi/2a44e082001b959bfe304b62121fb76d exploit
- github.com
- github.com product