CVE-2025-61785
published low CVSS 3.0 · 3.3Deno's --deny-write check does not prevent permission bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| denoland | — | deno>= 2.3.0, < 2.5.3 · < 2.2.15 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 3.3 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| denoland | deno | >= 2.3.0, < 2.5.3 (affected)< 2.2.15 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-266 CWE-266: Incorrect Privilege Assignment
References
5- https://github.com/denoland/deno/commit/992e998dfe436cdc9325232759af8be92f11739b
- https://github.com/denoland/deno/pull/30872
- https://github.com/denoland/deno/releases/tag/v2.2.15
- https://github.com/denoland/deno/releases/tag/v2.5.3
- https://github.com/denoland/deno/security/advisories/GHSA-vg2r-rmgp-cgqj
Provider assertions
2GitHub_M · cna
Deno's --deny-write check does not prevent permission bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8c962f524856eab12f973b97b7b53e2f376e8e27d259145254d06a032556b875
- Ingested
- 23 Sep 2026, 08:55:13 UTC
- Source record
- Official CVE record