CVE-2021-23449 Sandbox Bypass

Critical 9.8 Published Updated

Attackers can execute arbitrary code on the host machine by exploiting a prototype pollution vulnerability in the vm2 sandbox library.

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-23449?

CVE-2021-23449 is a critical code injection vulnerability in vm2, published on 18 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitrary code on the host machine.

Weakness: CWE-1321

Which versions are affected by CVE-2021-23449?

2 open source packages ship an affected version, including vm2. It affects 1 product.

PackageAffectedFixed in
vm2 npmAll versions3.9.4
vm2 npmAll versions3.9.4

Products include Vm2 Project Vm2.

How do I fix CVE-2021-23449?

Upgrade vm2 to 3.9.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-23449 being exploited?

There is no known exploitation of CVE-2021-23449 in the wild and no public exploit code.

Sources

Also known as GHSA-rjf2-j2r6-q8gr, SNYK-JS-VM2-1585918.

Is CVE-2021-23449 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free