CVE-2023-29199
CRITICAL 10.0CVSS 3.1vm2 Sandbox Escape vulnerability
There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15, allowing attackers to bypass handleException() and leak unsanitized host exceptions which can be used to escape the sandbox and run arbitrary code in host context. A threat actor can 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.16 of vm2.
- Published
- 14 Apr 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-913
- Also known as
- GHSA-xj72-wvfv-8985
- Sources
- NVDJSONOSV GHSA-xj72-wvfv-8985JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | 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 | security-advisories@github.com (Secondary) | 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.16 | 3.9.16 |
| OSV | npm | vm2 | < 3.9.16 | 3.9.16 |
References
- https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c · Exploit, Third Party Advisory, WEB
- https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7 · Patch, WEB
- https://github.com/patriksimek/vm2/issues/516 · Issue Tracking, Patch, WEB
- https://github.com/patriksimek/vm2/releases/tag/3.9.16 · Release Notes, WEB
- https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-29199 · ADVISORY
- https://github.com/patriksimek/vm2 · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 14 Apr 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Apr 2023)