CVE-2024-34346
published 2024-05-07CVE-2024-34346: Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. The Deno sandbox may be unexpectedly weakened by allowing file read/write…
PriorityP347critical9CVSS 3.1
AVAACLPRLUINSCCHIHAH
EPSS
0.37%
30.7th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| deno | deno | < 1.43.1 | 1.43.1 |
| deno | deno | >= 0 < 1.43.1 | 1.43.1 |
| denoland | deno | < 1.43.0 | 1.43.0 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Deno permission escalation vulnerability via open of privileged files with missing `--deny` flag
osv·2024-05-08
CVE-2024-34346 [HIGH] Deno permission escalation vulnerability via open of privileged files with missing `--deny` flag
Deno permission escalation vulnerability via open of privileged files with missing `--deny` flag
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.
### Impact
Users who run code with `--allow-read` or `--allow-write` may unexpectedly end up gran
GHSA
Deno permission escalation vulnerability via open of privileged files with missing `--deny` flag
ghsa·2024-05-08
CVE-2024-34346 [HIGH] CWE-863 Deno permission escalation vulnerability via open of privileged files with missing `--deny` flag
Deno permission escalation vulnerability via open of privileged files with missing `--deny` flag
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.
### Impact
Users who run code with `--allow-read` or `--allow-write` may unexpectedly end up gran
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-05-07
Published