CVE-2022-39266 isolated-vm has vulnerable CachedDataOptions in API
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.
Which versions are affected by CVE-2022-39266?
2 open source packages ship an affected version, including isolated-vm. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
isolated-vm npm | All versions | 4.3.7 |
isolated-vm npm | All versions | 4.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.
Other vulnerabilities in laverdet isolated-vm
Sources
Also known as GHSA-2jjq-x548-rhpv.