CVE-2024-27934
HIGH 8.8CVSS 3.1*const c_void / ExternalPointer unsoundness leading to use-after-free
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.
- Published
- 21 Mar 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-416
- Also known as
- GHSA-3j27-563v-28wf
- Sources
- NVDJSONOSV GHSA-3j27-563v-28wfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | deno | denocpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* |
>= 1.36.2, < 1.40.3 | 1.40.3 |
| OSV | crates.io | deno | >= 1.36.2, < 1.40.3 | 1.40.3 |
References
- https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf · Exploit, Vendor Advisory, WEB
- https://github.com/denoland/deno · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 21 Mar 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Mar 2024)