{"id":"CVE-2024-27934","state":"PUBLISHED","title":"*const c_void / ExternalPointer unsoundness leading to use-after-free","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.","publishedAt":"2024-03-06T20:56:39.368Z","updatedAt":"2024-08-02T19:24:42.692Z","severity":{"score":8.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["denoland deno"],"affected":[{"vendor":"denoland","product":"deno","versions":[{"version":">= 1.36.2, < 1.40.3","status":"affected"}]}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27934.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-27934","state":"PUBLISHED","datePublished":"2024-03-06T20:56:39.368Z","dateUpdated":"2024-08-02T19:24:42.692Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-02-28T15:14:14.216Z"},"containers":{"cna":{"title":"*const c_void / ExternalPointer unsoundness leading to use-after-free","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"denoland","product":"deno","versions":[{"version":">= 1.36.2, < 1.40.3","status":"affected"}]}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf","name":"https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"CWE-416: Use After Free","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-03-06T20:56:39.368Z"},"source":{"advisory":"GHSA-3j27-563v-28wf","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf","name":"https://github.com/denoland/deno/security/advisories/GHSA-3j27-563v-28wf","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:41:55.960Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"deno","product":"deno","defaultStatus":"unknown","versions":[{"version":"1.36.2","status":"affected","lessThan":"1.40.3","versionType":"custom"}],"cpes":["cpe:2.3:a:deno:deno:1.36.2:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-02T19:23:28.021479Z","id":"CVE-2024-27934","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-02T19:24:42.692Z"}}]}}}