{"id":"CVE-2025-48935","published":"2025-06-04T19:31:26Z","modified":"2025-06-04T20:41:22Z","title":"Deno has --allow-read / --allow-write permission bypass in `node:sqlite`","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 2.2.0 and prior to versions 2.2.5, it is possible to bypass Deno's permission read/write db permission check by using `ATTACH DATABASE` statement. Version 2.2.5 contains a patch for the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00488,"percentile":0.4295,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860","tags":["x_refsource_MISC"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":8.59},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 2.2.0, < 2.2.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-06-04T20:41:16.047507Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":[">=2.2.0, <2.2.5"],"patched":["2.2.5"],"from":["GHSA-8vxj-4cph-c596","RUSTSEC-2025-0138"],"provenance":"source"},{"ecosystem":"crates.io","package":"deno_node","vulnerableRanges":[">=0.129.0, <0.134.0"],"patched":["0.134.0"],"from":["GHSA-8vxj-4cph-c596"],"provenance":"source"}],"summary":{"text":"The flaw is in Deno's node:sqlite module, where the runtime's --allow-read/--allow-write database permission check can be bypassed using the ATTACH DATABASE SQL statement. An attacker able to run SQL through this module can use that bypass to read or write database files they should not have access to, requiring only network-reachable access to the attack surface with no authentication or user interaction needed, though the vulnerable behaviour applies only to Deno versions from 2.2.0 up to but not including 2.2.5.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:02Z"},"euvd":{"id":"EUVD-2025-16915","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-34346","published":"2024-05-07","fixed":"1.43.1","kev":false},{"cve":"CVE-2025-21620","published":"2025-01-06","fixed":"2.1.2","kev":false},{"cve":"CVE-2025-24015","published":"2025-06-03","fixed":"2.1.7","kev":false},{"cve":"CVE-2025-48935","published":"2025-06-04","fixed":"2.2.5","kev":false},{"cve":"CVE-2025-48934","published":"2025-06-04","fixed":"2.2.13","kev":false,"link":{"from":"CVE-2025-48935","to":"CVE-2025-48934","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.2.5","toFixed":"2.2.13","daysApart":0}]}},{"cve":"CVE-2025-48888","published":"2025-06-04","fixed":"2.3.2","kev":false,"link":{"from":"CVE-2025-48935","to":"CVE-2025-48888","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.2.5","toFixed":"2.2.13","daysApart":0}]}},{"cve":"CVE-2025-61787","published":"2025-10-08","fixed":"2.5.2","kev":false}],"package":"crates.io:deno"}}