CVE-2023-29199 vm2 Sandbox escape vulnerability
Attackers can bypass sandbox protections in vm2 to execute arbitrary code on the host system via unsanitized exception leakage.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-29199?
CVE-2023-29199 is a critical code injection vulnerability in patriksimek vm2, published on 14 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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`.
Weakness: CWE-913
Which versions are affected by CVE-2023-29199?
2 open source packages ship an affected version, including vm2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
vm2 npm | All versions | 3.9.16 |
vm2 npm | All versions | 3.9.16 |
Products include Vm2 Project Vm2.
How do I fix CVE-2023-29199?
Upgrade vm2 to 3.9.16 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-29199 being exploited?
There is no known exploitation of CVE-2023-29199 in the wild and no public exploit code.
Other vulnerabilities in patriksimek vm2
Sources
Also known as GHSA-xj72-wvfv-8985, ROOT-APP-NPM-CVE-2023-29199.