CVE-2025-61785Deno's --deny-write check does not prevent permission bypass
Updated under an hour ago ()
Does this affect you?
It affects denoland deno and 1 other product. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 3.3 LOW (v3.0, CNA)CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- Weakness (CWE)
- CWE-266
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Analyzed
- Record last updated
- Oct 8, 2025
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
denoland deno denoland:deno (from the name) | from 2.3.0, < 2.5.3; before 2.2.15 | CNA record |
deno deno deno:deno | through 2.2.15; from 2.3.0 before 2.5.3 | NVD |
References
- https://github.com/denoland/deno/security/advisories/GHSA-vg2r-rmgp-cgqjx-refsource-confirm, exploit, vendor-advisory
- https://github.com/denoland/deno/pull/30872x-refsource-misc, issue-tracking, patch
- https://github.com/denoland/deno/commit/992e998dfe436cdc9325232759af8be92f11739bx-refsource-misc, patch
- https://github.com/denoland/deno/releases/tag/v2.2.15x-refsource-misc, release-notes
- https://github.com/denoland/deno/releases/tag/v2.5.3x-refsource-misc, release-notes
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.