CVE-2022-39266 isolated-vm has vulnerable CachedDataOptions in API

Critical 9.7 Published Updated

Attackers can bypass the sandbox and execute arbitrary code in the Node.js process by providing malicious cached data to the isolated-vm library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-39266?

CVE-2022-39266 is a critical code injection vulnerability in laverdet isolated-vm, published on 29 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

isolated-vm is a library for nodejs which gives the user access to v8's Isolate interface. In versions 4.3.6 and prior, if the untrusted v8 cached data is passed to the API through CachedDataOptions, attackers can bypass the sandbox and run arbitrary code in the nodejs process. Version 4.3.7 changes the documentation to warn users that they should not accept `cachedData` payloads from a user.

Weakness: CWE-693, CWE-20

Which versions are affected by CVE-2022-39266?

2 open source packages ship an affected version, including isolated-vm. It affects 1 product.

PackageAffectedFixed in
isolated-vm npmAll versions4.3.7
isolated-vm npmAll versions4.3.7

Products include Isolated-Vm Project Isolated-Vm.

How do I fix CVE-2022-39266?

Upgrade isolated-vm to 4.3.7 or later.

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

Is CVE-2022-39266 being exploited?

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

Sources

Also known as GHSA-2jjq-x548-rhpv.

Is CVE-2022-39266 in your software?

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

Check your SBOMs for free