CVE-2023-29017
CRITICAL 9.8CVSS 3.1vm2 vulnerable to sandbox escape
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.
- Published
- 6 Apr 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-913
- Also known as
- GHSA-7jxr-cg7f-gpgv
- Sources
- NVDJSONOSV GHSA-7jxr-cg7f-gpgvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vm2_project | vm2cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:* |
< 3.9.15 | 3.9.15 |
| OSV | npm | vm2 | < 3.9.15 | 3.9.15 |
References
- https://gist.github.com/seongil-wi/2a44e082001b959bfe304b62121fb76d · Exploit, WEB
- https://github.com/patriksimek/vm2/commit/d534e5785f38307b70d3aac1945260a261a94d50 · Patch, WEB
- https://github.com/patriksimek/vm2/issues/515 · Exploit, Issue Tracking, WEB
- https://github.com/patriksimek/vm2/security/advisories/GHSA-7jxr-cg7f-gpgv · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-29017 · ADVISORY
- https://github.com/patriksimek/vm2 · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 6 Apr 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 7 Apr 2023)