Use After Free in Deno
CVE-2024-27934
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.36.2 and prior to version 1.40.3, use of inherently unsafe `*const c_void` and `ExternalPointer` leads to use-after-free access of the underlying structure, resulting in arbitrary code execution. Use of inherently unsafe `*const c_void` and `ExternalPointer` leads to use-after-free access of the underlying structure, which is exploitable by an attacker controlling the code executed inside a Deno runtime to obtain arbitrary code execution on the host machine regardless of permissions. This bug is known to be exploitable for both `*const c_void` and `ExternalPointer` implementations. Version 1.40.3 fixes this issue.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.004, 33.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Deno
- Denoland Deno — versions >= 1.36.2, < 1.40.3
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (leesh3288/leesh3288). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf (Exploit, Vendor Advisory)