{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-61786","id":"CVE-2025-61786","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` a","descriptionLong":"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.","published":"2025-10-08T00:49:42.824Z","updated":"2026-10-28T02:30:59.685749586Z","reserved":"2025-09-30T19:43:49.903Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub_M"},"metrics":[{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub_M"},{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"github.com"},{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"OSV"},{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub"}],"rating":"low","products":["denoland deno"],"affectedProducts":[{"vendor":"denoland","product":"deno","defaultStatus":null,"versions":[{"version":">= 2.3.0, < 2.5.3","status":"affected"},{"version":"< 2.2.15","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"deno","purl":"pkg:cargo/deno","ranges":["<2.5.3"],"fixed":["2.5.3"],"advisory":"GHSA-qq26-84mh-26j9"}],"cwes":["CWE-269"],"aliases":["GHSA-qq26-84mh-26j9"],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-qq26-84mh-26j9","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/denoland/deno/pull/30876","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/denoland/deno/commit/1ab2268c0bcbf9b0468e0e36963f77f8c31c73ec","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/denoland/deno/releases/tag/v2.2.15","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/denoland/deno/releases/tag/v2.5.3","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/61xxx/CVE-2025-61786.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61786","tags":["advisory"]},{"url":"https://github.com/denoland/deno","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.002,"epssPercentile":0.09908,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-61786","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61786","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-61786","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qq26-84mh-26j9","ok":true,"note":"GHSA-qq26-84mh-26j9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-61786","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}