{"id":"CVE-2025-61785","revision":"2daa940790f740949c1d0c9a3c3c9f25","records":[{"revision":"2daa940790f740949c1d0c9a3c3c9f25","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-61785","aliases":[],"title":"Deno's --deny-write check does not prevent permission bypass","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\u00A0`allow-write`\u00A0permission, 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.","state":0,"publishedAt":"2025-10-08T00:37:01.869+00:00","modifiedAt":"2025-10-08T18:59:12.863+00:00","affected":[{"ecosystem":"Vendor product","name":"deno","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"denoland\",\n                    \"product\": \"deno\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 2.3.0, < 2.5.3\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 2.2.15\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.3,"severity":"LOW"}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-vg2r-rmgp-cgqj","https://github.com/denoland/deno/pull/30872","https://github.com/denoland/deno/commit/992e998dfe436cdc9325232759af8be92f11739b","https://github.com/denoland/deno/releases/tag/v2.2.15","https://github.com/denoland/deno/releases/tag/v2.5.3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-61785","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-61785","identifiers":["CVE-2025-61785"]},"retained":false,"historicalAffected":[]}],"coverage":[]}