Read the docs
TI-2025-38178 Aliases CVE-2025-61785GHSA-vg2r-rmgp-cgqj

Deno's --deny-write check does not prevent permission bypass

Priority MEDIUM 49CWE-266Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Privilege escalation
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-266.

Summary

Deno is a JavaScript, TypeScript, and WebAssembly runtime. In versions prior to 2.5.3 and 2.2.15, `Deno.FsFile.prototype.utime` and `Deno.FsFile.prototype.utimeSync` are not limited by the permission model check `--deny-write=./`. It's possible to change to change the access (`atime`) and modification (`mtime`) times on the file stream resource even when the file is opened with `read` only permission (and `write`: `false`) and file write operations are not allowed (the script is executed with `--deny-write=./`). Similar APIs like `Deno.utime` and `Deno.utimeSync` require `allow-write` permission, however, when a file is opened, even with read only flags and deny-write permission, it's still possible to change the access (`atime`) and modification (`mtime`) times, and thus bypass the permission model. Versions 2.5.3 and 2.2.15 fix the issue.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00204 10th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed deno (denoland): 2.5.3, 2.2.15deno (crates.io): 2.5.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
denolanddeno2.3.0 to before 2.5.3; before 2.2.152.5.3, 2.2.15Patch availableCNA
—deno (crates.io)before 2.5.32.5.3Patch availableGHSA-vg2r-rmgp-cgqj
  • deno Vendordenoland Affected 2.3.0 to before 2.5.3; before 2.2.15 Fixed in 2.5.3, 2.2.15 Patch available CNA
  • deno (crates.io) Vendor— Affected before 2.5.3 Fixed in 2.5.3 Patch available GHSA-vg2r-rmgp-cgqj

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*up to 2.2.15; 2.3.0 to before 2.5.3Vulnerabledenoland
  • cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* Versions up to 2.2.15; 2.3.0 to before 2.5.3 Vulnerable ·denoland

Remediation

  • Fix · CNA deno (denoland) Fixed in 2.5.3, 2.2.15
  • Fix · GHSA-vg2r-rmgp-cgqj deno (crates.io) Fixed in 2.5.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-61785
  2. 2026-10-03 Alias added: GHSA-vg2r-rmgp-cgqj

References

  • TI-2026-21627 Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process CVSS 3.1CRITICAL 9.8
  • TI-2025-17782 Deno's AES GCM authentication tags are not verified CVSS 4.0HIGH 7.7
  • TI-2024-18537 *const c_void / ExternalPointer unsoundness leading to use-after-free CVSS 3.1HIGH 8.8
  • TI-2024-18536 Deno arbitrary file descriptor close via `op_node_ipc_pipe()` leading to permission prompt bypass CVSS 3.1HIGH 8.8
  • TI-2023-12990 Deno is vulnerable to interactive `run` permission prompt spoofing via improper ANSI neutralization CVSS 3.1HIGH 8.8
  • TI-2023-11328 Regular expression denial of service in deno CVSS 3.1HIGH 7.5
See all 37 →

Sources