{"id":"EUVD-2024-0943","revision":null,"records":[{"revision":"fbccbffabfcf407b9372e34bb7a8dab9","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-27931","aliases":[],"title":"Insufficient permission checking in `Deno.makeTemp*` APIs","description":"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","state":0,"publishedAt":"2024-03-05T16:43:11.934+00:00","modifiedAt":"2024-08-02T00:41:55.851+00:00","affected":[{"ecosystem":"Vendor product","name":"deno","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"denoland\",\n                    \"product\": \"deno\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.41.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"severity":"MEDIUM"}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-27931","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-27931","identifiers":["CVE-2024-27931"]},"retained":false,"historicalAffected":[]},{"revision":"9b9357d40f0246e9acae3eccceaf7a5b","observedAt":"2026-11-15T01:52:32.93+00:00","statement":{"source":"euvd","id":"EUVD-2024-0943","aliases":["CVE-2024-27931","GHSA-hrqr-jv8w-v9jh"],"title":"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 …","description":"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","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"severity":null}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0943","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Mar 5, 2024, 4:43:11 PM","dateUpdated":"Aug 2, 2024, 12:41:55 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-0943","identifiers":["EUVD-2024-0943","CVE-2024-27931","GHSA-hrqr-jv8w-v9jh"]},"retained":false,"historicalAffected":[]},{"revision":"4daf5f1c6f3344bab86e74df2110d841","observedAt":"2026-10-24T23:17:28.568+00:00","statement":{"source":"nvd","id":"CVE-2024-27931","aliases":[],"title":"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 …","description":"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","state":0,"publishedAt":"2024-03-05T17:15:07.31+00:00","modifiedAt":"2026-06-17T07:20:37.263+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-27931","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-20","NVD-CWE-noinfo"],"productCriteria":["cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2024-03-05T17:15:07.310","lastModified":"2026-06-17T07:20:37.263"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-27931","identifiers":["CVE-2024-27931"]},"retained":false,"historicalAffected":[]},{"revision":"6b683d55dc864c99af0d23801132f283","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-hrqr-jv8w-v9jh","aliases":["CVE-2024-27931"],"title":"Insufficient permission checking in `Deno.makeTemp*` APIs","description":"### Impact\n\nInsufficient 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.\n\nA user may provide a prefix or suffix to a `Deno.makeTemp*` API containing path traversal characters. The permission check would prompt for the base directory of the API, but the final file that was created would be outside of this directory:\n\n```\n$ mkdir /tmp/good\n$ mkdir /tmp/bad\n$ deno repl --allow-write=/tmp/good\n> Deno.makeTempFileSync({ dir: \"/tmp/bad\" })\n┌ ⚠️  Deno requests write access to \"/tmp/bad\".\n├ Requested by `Deno.makeTempFile()` API.\n├ Run again with --allow-write to bypass this prompt.\n└ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all write permissions) > n\n❌ Denied write access to \"/tmp/bad\".\nUncaught PermissionDenied: Requires write access to \"/tmp/bad\", run again with the --allow-write flag\n    at Object.makeTempFileSync (ext:deno_fs/30_fs.js:176:10)\n    at <anonymous>:1:27\n> Deno.makeTempFileSync({ dir: \"/tmp/good\", prefix: \"../bad/\" })\n\"/tmp/good/../bad/a9432ef5\"\n$ ls -l /tmp/bad/a9432ef5\n-rw-------@ 1 user  group  0 Mar  4 09:20 /tmp/bad/a9432ef5\n```\n\n### Patches\n\nThis is fixed in Deno 1.41.1.\n\n","state":0,"publishedAt":"2024-03-05T16:19:44+00:00","modifiedAt":"2026-09-10T03:50:10.6253451+00:00","affected":[{"ecosystem":"crates.io","name":"deno","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.41.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh","https://nvd.nist.gov/vuln/detail/CVE-2024-27931","https://github.com/denoland/deno"],"sourceUrl":"https://github.com/advisories/GHSA-hrqr-jv8w-v9jh","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hrqr-jv8w-v9jh","identifiers":["GHSA-hrqr-jv8w-v9jh","CVE-2024-27931"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T21:26:22.1226934+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T21:26:22.1226934+00:00","lastSuccessAt":"2026-11-16T21:26:22.353019+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.3530195+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-b7ae3bdb0699f2500ff81a2529250ecaa285d9a3824324996c109bf112b16dad","complete":true,"records":426173,"lastAttemptAt":"2026-11-16T21:26:21.5473051+00:00","lastSuccessAt":"2026-11-16T21:26:21.4103203+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.5473051+00:00","snapshotPublishedAt":"2026-11-16T21:21:33+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-f07cbea7dec4426c9e098dc06e262653","complete":true,"records":13831,"lastAttemptAt":"2026-11-16T21:26:49.3867614+00:00","lastSuccessAt":"2026-11-16T20:48:05.528+00:00","error":null,"lastVerifiedAt":"2026-11-16T20:48:05.528+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13884,"expectedIdentifiers":13884,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T21:26:22.1226934+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T21:26:22.1226934+00:00","lastSuccessAt":"2026-11-16T21:26:22.4130322+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.4130334+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-05d1c8ce07ac4b8a9be803d9f202f74d","complete":false,"records":13843,"lastAttemptAt":"2026-11-16T21:26:48.2924706+00:00","lastSuccessAt":"2026-11-16T21:26:48.286+00:00","error":"10 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T21:26:48.286+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13874,"expectedIdentifiers":13884,"failedIdentifiers":10},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T21:26:21.9356446+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.9356446+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T21:26:21.7079424+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.7079424+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T21:26:22.0454831+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.0454831+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-d3135f0ae820c85dd153afd7ef11f8856f87d0924652a66bf0a06179e07249db","complete":true,"records":232552,"lastAttemptAt":"2026-11-16T21:26:21.8242462+00:00","lastSuccessAt":"2026-11-16T20:47:32.4854972+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.8242462+00:00","snapshotPublishedAt":"2026-11-16T20:33:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}