# CVE-2024-27931: Insufficient permission checking in `Deno.makeTemp*` APIs

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-05T16:19:44.000Z
- Modified: 2026-09-10T03:50:10.625Z
- Also known as: GHSA-hrqr-jv8w-v9jh
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- denoland deno: < 1.41.1
- deno deno: before 1.41.1
- deno (crates.io): before 1.41.1

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27931> (advisory)
- <https://github.com/denoland/deno> (package)

## Sources

- CVE List: [CVE-2024-27931](https://www.cve.org/CVERecord?id=CVE-2024-27931), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-hrqr-jv8w-v9jh](https://github.com/advisories/GHSA-hrqr-jv8w-v9jh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27931](https://nvd.nist.gov/vuln/detail/CVE-2024-27931), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27931 · Whole record: https://cve.day/CVE-2024-27931.json · Rebuilt by cve.day 2026-11-25T22:58:37.273Z
