Skip to main content
← All vulnerabilities
CVE-2024-27934GHSA-3J27-563V-28WF

*const c_void / ExternalPointer unsoundness leading to use-after-free

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.40.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • denoland deno

    From 1.36.2 · fixed in 1.40.3

  • denocrates.io

    From 1.36.2 · fixed in 1.40.3

References 1

GitHub · denoland/deno