Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. deno
  4. ›
  5. CVE-2024-34346

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

May 8, 2024

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.

References

  • github.com/advisories/GHSA-23rx-c3g5-hv9w
  • github.com/denoland/deno
  • github.com/denoland/deno/security/advisories/GHSA-23rx-c3g5-hv9w
  • nvd.nist.gov/vuln/detail/CVE-2024-34346

Code Behaviors & Features

Detect and mitigate CVE-2024-34346 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.43.1

Fixed versions

  • 1.43.1

Solution

Upgrade to version 1.43.1 or above.

Impact 8.4 HIGH

CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

cargo/deno/CVE-2024-34346.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:57 +0000.