CVE-2021-23555 Sandbox Bypass
Attackers can bypass the vm2 sandbox to execute arbitrary code on the host machine by accessing internal error objects during stack trace generation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23555?
CVE-2021-23555 is a critical code injection vulnerability in vm2, published on 11 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package vm2 before 3.9.6 are vulnerable to Sandbox Bypass via direct access to host error objects generated by node internals during generation of a stacktraces, which can lead to execution of arbitrary code on the host machine.
Which versions are affected by CVE-2021-23555?
2 open source packages ship an affected version, including vm2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
vm2 npm | All versions | 3.9.6 |
vm2 npm | All versions | 3.9.6 |
Products include Vm2 Project Vm2.
How do I fix CVE-2021-23555?
Upgrade vm2 to 3.9.6 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-23555 being exploited?
There is no known exploitation of CVE-2021-23555 in the wild and no public exploit code.
Other vulnerabilities in vm2
Sources
Also known as GHSA-6pw2-5hjv-9pf7, SNYK-JS-VM2-2309905.