CVE-2024-27934

HIGH

Deno 1.36.2-1.40.2 - Use-After-Free via Unsafe Pointer Handling

Title source: llm
STIX 2.1

Description

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.

References (1)

Core 1
Core References

Scores

CVSS v3 8.4
EPSS 0.0039
EPSS Percentile 31.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-416
Status published
Products (2)
crates.io/deno 1.36.2 - 1.40.3crates.io
deno/deno 1.36.2 - 1.40.3
Published Mar 21, 2024
Tracked Since Feb 18, 2026