{"id":"CVE-2024-27934","summary":"*const c_void / ExternalPointer unsoundness leading to use-after-free","details":"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.","aliases":["GHSA-3j27-563v-28wf"],"modified":"2026-08-12T03:51:09.436250004Z","published":"2024-03-06T20:56:39.368Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-416"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27934.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27934.json"},{"type":"ADVISORY","url":"https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27934"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/denoland/deno","events":[{"introduced":"a7f5244a72cc6c00949c02a180d0d9cdf2bf1672"},{"fixed":"887fd59486325ad99c183955b35fec07fd45516c"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"1.36.2"},{"fixed":"1.40.3"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27934.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}