# CVE-2025-61786: Deno's --deny-read check does not prevent permission bypass

- Severity: Low 3.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/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 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-08T00:49:42.824Z
- Modified: 2026-10-08T13:10:00.200Z
- Also known as: GHSA-qq26-84mh-26j9
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation none, 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.stat` and `Deno.FsFile.prototype.statSync` are not limited by the permission model check `--deny-read=./`. It's possible to retrieve stats from files that the user do not have explicit read access to (the script is executed with `--deny-read=./`). Similar APIs like `Deno.stat` and `Deno.statSync` require `allow-read` permission, however, when a file is opened, even with file-write only flags and deny-read permission, it's still possible to retrieve file stats, 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.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-qq26-84mh-26j9> (exploit, vendor-advisory, web)
- <https://github.com/denoland/deno/pull/30876> (issue-tracking, patch, web)
- <https://github.com/denoland/deno/commit/1ab2268c0bcbf9b0468e0e36963f77f8c31c73ec> (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-61786> (advisory)
- <https://github.com/denoland/deno> (package)

## Sources

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

---

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