CVE-2025-48935CWE-863

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

Medium · published June 4, 2025

CVSS v4.0
5.5
EPSS
0%
Percentile
39.5
In the wild
Unconfirmed
What it is

⚠️ A sneaky little SQL statement is all it takes to bypass permission checks in Deno! With the `ATTACH DATABASE` command, your app could end up with unmitigated access. 🔥 Think of it like a restaurant allowing access to the kitchen just because you asked nicely, without checking if you actually have a reservation. That could lead to all sorts of unauthorized 'specials' being served up! This flaw allows attackers to gain unauthorized access to your database, potentially compromising sensitive data. If exploited, it could mean the difference between a secure app and one that’s wide open to data breaches!

Put simply

Think of it like a restaurant allowing access to the kitchen just because you asked nicely, without checking if you actually have a reservation. That could lead to all sorts of unauthorized 'specials' being served up! In Deno versions 2.2.0 to 2.2.4, the `ATTACH DATABASE` statement bypasses the read/write permission checks, allowing unauthorized database access. This vulnerability affects the security model of Deno's runtime by allowing operations that shouldn't be permitted.

What to do

This flaw allows attackers to gain unauthorized access to your database, potentially compromising sensitive data. If exploited, it could mean the difference between a secure app and one that’s wide open to data breaches! Upgrade Deno to version 2.2.5 immediately to patch this vulnerability. Additionally, review your application's permission settings and ensure they align with your security policies. Regular audits can help catch issues like this before they become a problem! You’ve got this! Follow these steps, and you’ll have your Deno environment locked down tighter than a well-run kitchen! 🛡️

The record
Technical detail
CVSS v4.0
5.5 · MEDIUM
Vector
CVSS: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
EPSS
0.00468 · 39.5th percentile
Weakness
CWE-863 · Incorrect Authorization
Published
2025-06-04T19:31Z
EPSS history
Timeline
  • 04 JUN 19:31Z
    Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
    cvelistv5