# CVE-2025-61785: Deno's --deny-write check does not prevent permission bypass

- Severity: Low 3.3 (CVSS:3.0, scored by GitHub_M) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 11% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-07T22:36:36.000Z
- Modified: 2026-10-08T13:10:00.200Z
- Also known as: GHSA-vg2r-rmgp-cgqj
- Weaknesses: CWE-266
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- denoland deno: >= 2.3.0, < 2.5.3; < 2.2.15
- deno (crates.io): before 2.5.3
- deno deno: up to 2.2.15; from 2.3.0 before 2.5.3

## Every score

- GitHub_M: CVSS:3.0 3.3 Low `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.0 3.3 Low `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-vg2r-rmgp-cgqj> (exploit, vendor-advisory, web)
- <https://github.com/denoland/deno/pull/30872> (issue-tracking, patch, web)
- <https://github.com/denoland/deno/commit/992e998dfe436cdc9325232759af8be92f11739b> (patch, web)
- <https://github.com/denoland/deno/releases/tag/v2.2.15> (release-notes, web)
- <https://github.com/denoland/deno/releases/tag/v2.5.3> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61785> (advisory)
- <https://github.com/denoland/deno> (package)

## Sources

- CVE List: [CVE-2025-61785](https://www.cve.org/CVERecord?id=CVE-2025-61785), CVE Terms of Use, modified 2025-10-08
- GitHub Advisory Database: [GHSA-vg2r-rmgp-cgqj](https://github.com/advisories/GHSA-vg2r-rmgp-cgqj), CC-BY-4.0, modified 2025-10-13
- NVD: [CVE-2025-61785](https://nvd.nist.gov/vuln/detail/CVE-2025-61785), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2025-61785 · Whole record: https://cve.day/CVE-2025-61785.json · Rebuilt by cve.day 2026-11-25T22:59:05.630Z
