{"id":"CVE-2024-27934","published":"2024-03-06T20:56:39Z","modified":"2024-08-02T19:24:42Z","title":"*const c_void / ExternalPointer unsoundness leading to use-after-free","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00356,"percentile":0.2165,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":4.33},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 1.36.2, < 1.40.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-08-02T19:23:28.021479Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":[">=1.36.2, <1.40.3"],"patched":["1.40.3"],"from":["GHSA-3j27-563v-28wf"],"provenance":"source"}],"summary":{"text":"The flaw is a use-after-free in the Deno JavaScript, TypeScript, and WebAssembly runtime, caused by unsafe use of *const c_void and ExternalPointer in versions from 1.36.2 up to (but not including) 1.40.3. An attacker who controls code executed inside a Deno runtime can exploit it to achieve arbitrary code execution on the host machine, without needing any special runtime permissions, and it is local with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:17Z"},"euvd":{"id":"EUVD-2024-0803","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-33966","published":"2023-05-31","fixed":"1.34.1","kev":false},{"cve":"CVE-2024-27935","published":"2024-03-06","fixed":"1.36.3","kev":false},{"cve":"CVE-2024-27933","published":"2024-03-06","fixed":"1.39.1","kev":false,"link":{"from":"CVE-2024-27933","to":"CVE-2024-27934","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.39.1","toFixed":"1.40.3","daysApart":0}]}},{"cve":"CVE-2024-27934","published":"2024-03-06","fixed":"1.40.3","kev":false},{"cve":"CVE-2024-27932","published":"2024-03-06","fixed":"1.40.4","kev":false,"link":{"from":"CVE-2024-27934","to":"CVE-2024-27932","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.40.3","toFixed":"1.40.4","daysApart":0}]}},{"cve":"CVE-2024-27936","published":"2024-03-06","fixed":"1.41.0","kev":false},{"cve":"CVE-2024-27931","published":"2024-03-05","fixed":"1.41.1","kev":false}],"package":"crates.io:deno"}}