{"id":"CVE-2025-61786","revision":"55d0dce83b7047e1bb2cacd61237ff8f","records":[{"revision":"55d0dce83b7047e1bb2cacd61237ff8f","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-61786","aliases":[],"title":"Deno's --deny-read 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.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\u00A0`allow-read`\u00A0permission, 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.","state":0,"publishedAt":"2025-10-08T00:49:42.824+00:00","modifiedAt":"2025-10-08T18:54:33.415+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.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"severity":"LOW"}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-qq26-84mh-26j9","https://github.com/denoland/deno/pull/30876","https://github.com/denoland/deno/commit/1ab2268c0bcbf9b0468e0e36963f77f8c31c73ec","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-61786","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-61786","identifiers":["CVE-2025-61786"]},"retained":false,"historicalAffected":[]}],"coverage":[]}