CVE-2025-61785 json
Deno's --deny-write check does not prevent permission bypass
published 2025-10-07 13 mo ago modified 2026-10-08 31 d ago also EUVD-2025-31878 , GHSA-vg2r-rmgp-cgqj , JLSEC-2026-111
- cvss
- 3.3
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
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.
Patch / fix
- crates.io deno 2.5.3
- julia Deno_jll 2.6.3+0
- deno deno 2.2.15, 2.5.3
- github.com/denoland/deno@992e998 commit
- github.com/denoland/deno#30872 pull request
- github.com/denoland/deno/releases/tag/v2.2.15 release
- github.com/denoland/deno/releases/tag/v2.5.3 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.20% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/denoland/deno/security/advisories/GHSA-vg2r-rmgp-cgqj referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 3.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 3.0 | 3.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | deno | <2.5.3 |
2.5.3 |
| julia | Deno_jll | <2.6.3+0 |
2.6.3+0 |
Affected products
- denoland deno
Classification
- Weakness
-
- CWE-266 Incorrect Privilege Assignment
References
-
github.com
/denoland/deno/pull/30872
web, issue-tracking, patch
-
github.com
/denoland/deno/commit/992e998dfe436cdc9325232759af8be92f11739b
web, patch
-
github.com
/denoland/deno/security/advisories/GHSA-vg2r-rmgp-cgqj
web, exploit, vendor-advisory
-
github.com
/denoland/deno/releases/tag/v2.2.15
web, release-notes
-
github.com
/denoland/deno/releases/tag/v2.5.3
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2025-61785
advisory, web
-
github.com
/denoland/deno
package
-
github.com
/advisories/GHSA-vg2r-rmgp-cgqj
web
Sources
- CVE List CVE-2025-61785
- GitHub Advisory GHSA-vg2r-rmgp-cgqj
- NVD CVE-2025-61785
- OSV JLSEC-2026-111
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.