{"id":"CVE-2025-61786","published":"2025-10-08T00:49:42Z","modified":"2025-10-08T18:54:33Z","title":"Deno's --deny-read 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.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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.3,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.002,"percentile":0.10023,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-qq26-84mh-26j9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/pull/30876","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/1ab2268c0bcbf9b0468e0e36963f77f8c31c73ec","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.3,"factors":[{"name":"EPSS percentile","points":2.0},{"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":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-08T18:54:24.275102Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":["<2.5.3"],"patched":["2.5.3"],"from":["GHSA-qq26-84mh-26j9"],"provenance":"source"}],"summary":{"text":"The flaw lies in the Deno JavaScript, TypeScript, and WebAssembly runtime, specifically in the file stat methods on Deno.FsFile objects, which are not subject to the --deny-read permission check. An attacker who can get a script to run in a Deno process started with --deny-read=./ and who has local access and low privileges can call these methods on a file they opened, including with write-only flags, to read its metadata and bypass the permission model.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:24Z"},"euvd":{"id":"EUVD-2025-33180","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-denoland-deno-cve-2025-61785","parents":[{"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-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-61786","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,"link":{"from":"CVE-2025-61786","to":"CVE-2026-22864","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.5.3","toFixed":"2.5.6","daysApart":99}]}},{"cve":"CVE-2026-22863","published":"2026-01-15","fixed":"2.6.0","kev":false},{"cve":"CVE-2026-27190","published":"2026-02-20","fixed":"2.6.8","kev":false}],"package":"crates.io:deno"}}