CVE-2022-39266 – isolated-vm has vulnerable CachedDataOptions in API
https://notcve.org/view.php?id=CVE-2022-39266
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. isolated-vm es una biblioteca para nodejs que da acceso a la interfaz Isolate de v8. En versiones 4.3.6 y anteriores, si los datos en caché de v8 que no son confiables son pasados a la API mediante CachedDataOptions, los atacantes pueden omitir el sandbox y ejecutar código arbitrario en el proceso de nodejs. En el momento de la publicación, no son conocidas versiones corregidas ni mitigaciones • https://github.com/laverdet/isolated-vm/commit/218e87a6d4e8cb818bea76d1ab30cd0be51920e8 https://github.com/laverdet/isolated-vm/commits/v4.3.7 https://github.com/laverdet/isolated-vm/issues/379 https://github.com/laverdet/isolated-vm/security/advisories/GHSA-2jjq-x548-rhpv • CWE-20: Improper Input Validation CWE-693: Protection Mechanism Failure •
CVE-2021-21413 – Misuse of `Reference` and other transferable APIs may lead to access to nodejs isolate
https://notcve.org/view.php?id=CVE-2021-21413
isolated-vm is a library for nodejs which gives you access to v8's Isolate interface. Versions of isolated-vm before v4.0.0 have API pitfalls which may make it easy for implementers to expose supposed secure isolates to the permissions of the main nodejs isolate. Reference objects allow access to the underlying reference's full prototype chain. In an environment where the implementer has exposed a Reference instance to an attacker they would be able to use it to acquire a Reference to the nodejs context's Function object. Similar application-specific attacks could be possible by modifying the local prototype of other API objects. • https://github.com/laverdet/isolated-vm/blob/main/CHANGELOG.md#v400 https://github.com/laverdet/isolated-vm/commit/2646e6c1558bac66285daeab54c7d490ed332b15 https://github.com/laverdet/isolated-vm/commit/27151bfecc260e96714443613880e3b2e6596704 https://github.com/laverdet/isolated-vm/security/advisories/GHSA-mmhj-4w6j-76h7 • CWE-913: Improper Control of Dynamically-Managed Code Resources •