CVE-2023-29199 json
vm2 Sandbox escape vulnerability
published 2023-04-12 3 y ago modified 2026-06-17 4 mo ago also GHSA-xj72-wvfv-8985 , EUVD-2023-1428
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.9%
- EPSS 3.9% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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`.
Patch / fix
- npm vm2 3.9.16
- vm2_project vm2 3.9.16
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-29199 updated cvss 9.8
vm2: Sandbox Escape
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel8affected: workaround, no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
3.85% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- gist.github.com https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | vm2 | <3.9.16 |
3.9.16 |
Affected products
- patriksimek vm2
Classification
- Weakness
-
- CWE-913 Improper Control of Dynamically-Managed Code Resources
References
-
github.com
/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7
web, patch
-
github.com
/patriksimek/vm2/issues/516
web, issue-tracking, patch
-
gist.github.com
/leesh3288/f05730165799bf56d70391f3d9ea187c
web, exploit, third-party-advisory
-
github.com
/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985
web, vendor-advisory
-
github.com
/patriksimek/vm2/releases/tag/3.9.16
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2023-29199
advisory
-
github.com
/patriksimek/vm2
package
Sources
- CVE List CVE-2023-29199
- GitHub Advisory GHSA-xj72-wvfv-8985
- NVD CVE-2023-29199
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.