{"id":"CVE-2024-27931","published":"2024-03-05T16:43:11Z","modified":"2024-08-02T00:41:55Z","title":"Insufficient permission checking in `Deno.makeTemp*` APIs","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. Insufficient validation of parameters in `Deno.makeTemp*` APIs would allow for creation of files outside of the allowed directories. This may allow the user to overwrite important files on the system that may affect other systems. A user may provide a prefix or suffix to a `Deno.makeTemp*` API containing path traversal characters. This is fixed in Deno 1.41.1.\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00593,"percentile":0.42375,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":8.47},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":["< 1.41.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-19T14:01:30.921102Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":["<1.41.1"],"patched":["1.41.1"],"from":["GHSA-hrqr-jv8w-v9jh"],"provenance":"source"}],"summary":{"text":"The Deno runtime's Deno.makeTemp* APIs fail to validate the prefix and suffix parameters, so path traversal characters supplied there are not rejected. An attacker who can supply those parameters over the network, without authentication or user interaction, can cause temporary files to be created outside the intended directories and overwrite files elsewhere on the system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:30Z"},"euvd":{"id":"EUVD-2024-0943","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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},{"cve":"CVE-2024-27936","published":"2024-03-06","fixed":"1.41.0","kev":false,"link":{"from":"CVE-2024-27936","to":"CVE-2024-27931","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.41.0","toFixed":"1.41.1","daysApart":-1}]}},{"cve":"CVE-2024-27931","published":"2024-03-05","fixed":"1.41.1","kev":false},{"cve":"CVE-2024-34346","published":"2024-05-07","fixed":"1.43.1","kev":false,"link":{"from":"CVE-2024-27931","to":"CVE-2024-34346","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.41.1","toFixed":"1.43.1","daysApart":63}]}},{"cve":"CVE-2025-21620","published":"2025-01-06","fixed":"2.1.2","kev":false},{"cve":"CVE-2025-24015","published":"2025-06-03","fixed":"2.1.7","kev":false}],"package":"crates.io:deno"}}