CVE-2022-36067 vm2 vulnerable to Sandbox Escape before v3.9.11

Critical 10.0 Published Updated

Attackers can bypass sandbox protections in vm2 to execute arbitrary code on the host system.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-36067?

CVE-2022-36067 is a critical code injection vulnerability in patriksimek vm2, published on 6 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. In versions prior to version 3.9.11, 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.11 of vm2. There are no known workarounds.

Weakness: CWE-913

Which versions are affected by CVE-2022-36067?

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

PackageAffectedFixed in
vm2 npmAll versions3.9.11
vm2 npmAll versions3.9.11

Products include Vm2 Project Vm2.

How do I fix CVE-2022-36067?

Upgrade vm2 to 3.9.11 or later.

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

Is CVE-2022-36067 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36067 exists.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-mrgp-mrhc-5jrq, ROOT-APP-NPM-CVE-2022-36067.

Is CVE-2022-36067 in your software?

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

Check your SBOMs for free