CVE-2023-29199
vm2 Sandbox escape vulnerability
CRITICAL 9.8
At a glance
- Source
- NVD
- EPSS
- EPSS 3.85 % · percentile 90 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
Description
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`.
Weaknesses (CWE)
- CWE-913 — Improper Control of Dynamically-Managed Code Resources
References
- https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985
- https://github.com/patriksimek/vm2/issues/516
- https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7
- https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c
- https://github.com/patriksimek/vm2/releases/tag/3.9.16
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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 | GitHub_M |
| 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 | 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) |
Advisories
- GHSA-xj72-wvfv-8985 — vm2 Sandbox Escape vulnerability
European references
- ENISA EUVD · EUVD-2023-1428
- GCVE · GCVE-0-2023-29199
CERT-FR advisories
- CERTFR-2023-AVI-0597 — Multiples vulnérabilités dans IBM Cognos Analytics · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*< 3.9.16
Affected products
| Product | Versions |
|---|---|
| patriksimek · vm2 | affected < 3.9.16 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |