{"id":"CVE-2025-61785","published":"2025-10-08T00:37:01Z","modified":"2025-10-08T18:59:12Z","title":"Deno's --deny-write check does not prevent permission bypass","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.3,"severity":"LOW","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00204,"percentile":0.10624,"provenance":"source"},"cwes":[{"id":"CWE-266","name":"Incorrect Privilege Assignment"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-vg2r-rmgp-cgqj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/pull/30872","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/992e998dfe436cdc9325232759af8be92f11739b","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/releases/tag/v2.2.15","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/releases/tag/v2.5.3","tags":["x_refsource_MISC"]}],"priority":{"score":4.4,"factors":[{"name":"EPSS percentile","points":2.12},{"name":"CVSS severity","points":2.31}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 2.3.0, < 2.5.3","< 2.2.15"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-08T18:59:00.429362Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":["<2.5.3"],"patched":["2.5.3"],"from":["GHSA-vg2r-rmgp-cgqj"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-31878","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-denoland-deno-cve-2025-61785","children":[{"from":"CVE-2025-61785","to":"CVE-2025-61786","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ext/fs/lib.rs","ext/fs/ops.rs"],"commits":["https://github.com/denoland/deno/commit/992e998dfe436cdc9325232759af8be92f11739b","https://github.com/denoland/deno/commit/1ab2268c0bcbf9b0468e0e36963f77f8c31c73ec"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-48934","published":"2025-06-04","fixed":"2.2.13","kev":false},{"cve":"CVE-2025-48888","published":"2025-06-04","fixed":"2.3.2","kev":false},{"cve":"CVE-2025-61787","published":"2025-10-08","fixed":"2.5.2","kev":false,"link":{"from":"CVE-2025-61787","to":"CVE-2025-61785","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.5.2","toFixed":"2.5.3","daysApart":0}]}},{"cve":"CVE-2025-61785","published":"2025-10-08","fixed":"2.5.3","kev":false},{"cve":"CVE-2025-61786","published":"2025-10-08","fixed":"2.5.3","kev":false},{"cve":"CVE-2026-22864","published":"2026-01-15","fixed":"2.5.6","kev":false},{"cve":"CVE-2026-22863","published":"2026-01-15","fixed":"2.6.0","kev":false}],"package":"crates.io:deno"}}