# CVE-2024-34346: Deno contains a permission escalation via open of privileged files with missing `--deny` flag

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- 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.53%, higher than 38% of CVEs (2026-11-30)
- Published: 2024-05-07T21:02:16.809Z
- Modified: 2026-09-10T03:50:12.879Z
- Also known as: GHSA-23rx-c3g5-hv9w
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. The Deno sandbox may be unexpectedly weakened by allowing file read/write access to privileged files in various locations on Unix and Windows platforms. For example, reading `/proc/self/environ` may provide access equivalent to `--allow-env`, and writing `/proc/self/mem` may provide access equivalent to `--allow-all`. Users who grant read and write access to the entire filesystem may not realize that these access to these files may have additional, unintended consequences. The documentation did not reflect that this practice should be undertaken to increase the strength of the security sandbox. Users who run code with `--allow-read` or `--allow-write` may unexpectedly end up granting additional permissions via file-system operations. Deno 1.43 and above require explicit `--allow-all` access to read or write `/etc`, `/dev` on unix platform (as well as `/proc` and `/sys` on linux platforms), and any path starting with `\\` on Windows.

(As written by CVE List.)

## Affected

- denoland deno: < 1.43.0
- deno deno: before 1.43.0; before 1.43.1
- deno (crates.io): before 1.43.1

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-23rx-c3g5-hv9w> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34346> (advisory)
- <https://github.com/denoland/deno> (package)

## Sources

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

---

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