CVE-2024-34346
Deno contains a permission escalation via open of privileged files with missing `--deny` flag
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.
INFO
Published Date :
May 7, 2024, 9:15 p.m.
Last Modified :
Sept. 4, 2025, 7:23 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | CRITICAL | [email protected] | 
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2024-34346.
                                        
| URL | Resource | 
|---|---|
| https://github.com/denoland/deno/security/advisories/GHSA-23rx-c3g5-hv9w | Vendor Advisory | 
| https://github.com/denoland/deno/security/advisories/GHSA-23rx-c3g5-hv9w | Vendor Advisory | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2024-34346 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2024-34346
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2024-34346 vulnerability anywhere in the article.
		
- 
                                                            
                                                                
Daily CyberSecurity
 
High-Severity Deno Flaw CVE-2025-61787 Allows Command Injection on Windows
The Deno project has issued a new security advisory warning of a command injection vulnerability on Windows systems, tracked as CVE-2025-61787 and rated CVSS 8.1 (High). The flaw affects Deno versions ... Read more
                The following table lists the changes that have been made to the
                CVE-2024-34346 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            
Initial Analysis by [email protected]
Sep. 04, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* versions up to (excluding) 1.43.1 Added Reference Type CVE: https://github.com/denoland/deno/security/advisories/GHSA-23rx-c3g5-hv9w Types: Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/denoland/deno/security/advisories/GHSA-23rx-c3g5-hv9w Types: Vendor Advisory  - 
                            
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/denoland/deno/security/advisories/GHSA-23rx-c3g5-hv9w  - 
                            
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value  - 
                            
CVE Received by [email protected]
May. 07, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/denoland/deno/security/advisories/GHSA-23rx-c3g5-hv9w [No types assigned] Added CWE GitHub, Inc. CWE-863 Added CVSS V3.1 GitHub, Inc. AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H