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

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-06T17:04:29.000Z
- Modified: 2026-06-17T07:20:37.660Z
- Also known as: GHSA-3j27-563v-28wf
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- denoland deno: >= 1.36.2, < 1.40.3
- deno deno: from 1.36.2 before 1.40.3
- deno (crates.io): from 1.36.2 before 1.40.3

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf> (exploit, vendor-advisory, web)
- <https://github.com/denoland/deno> (package)

## Sources

- CVE List: [CVE-2024-27934](https://www.cve.org/CVERecord?id=CVE-2024-27934), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-3j27-563v-28wf](https://github.com/advisories/GHSA-3j27-563v-28wf), CC-BY-4.0, modified 2026-02-17
- NVD: [CVE-2024-27934](https://nvd.nist.gov/vuln/detail/CVE-2024-27934), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27934 · Whole record: https://cve.day/CVE-2024-27934.json · Rebuilt by cve.day 2026-11-25T22:58:37.795Z
