Skip to main content

Deno CVE-2025-48935

| EUVDEUVD-2025-16915 CRITICAL
Incorrect Authorization (CWE-863)
2025-06-04 security-advisories@github.com GHSA-8vxj-4cph-c596
9.1
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

CVSS 9.1 (Critical) reflects the severe nature of an authorization bypass with high confidentiality and integrity impact and low attack complexity. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) indicates this is a network-exploitable vulnerability requiring no privileges or user interaction, making it immediately actionable. The authorization bypass nature (CWE-863) paired with the CVSS score suggests strong real-world risk: an attacker can craft a Deno application or inject SQL statements into an existing application that uses Deno's SQLite support to attach databases outside the intended permission scope. This is particularly critical in sandboxed or multi-tenant Deno environments where permission boundaries are relied upon for isolation. The absence of denial-of-service impact (A:N) is notable—this is a pure confidentiality and integrity breach. Given the straightforward exploitation path (crafting SQL statements), high CVSS, and the foundational nature of permission enforcement in a security-focused runtime, this warrants immediate prioritization. Real-world risk is HIGH: any Deno application using SQLite with version 2.2.0-2.2.4 in a context where database access should be restricted is at significant risk.

Exploit ScenarioDerived

An attacker develops or compromises a Deno application that accepts user input for database queries. The application uses Deno's SQLite module with restricted permissions (e.g., permission to read/write only to a specific directory). The attacker crafts a malicious SQL query containing ATTACH DATABASE '/etc/sensitive-data.db' AS secret; followed by SELECT * FROM secret.important_table;. Due to the vulnerability, Deno's permission system does not block the ATTACH statement because it only validates the initial database connection, not subsequent SQL statements. The attacker successfully reads data from a database file outside the application's intended permission scope. In a more severe scenario involving a multi-tenant Deno environment, an attacker could attach and read databases belonging to other tenants. The attack requires no user interaction on the victim's system and works over the network if the Deno application is network-accessible. Proof-of-concept would be straightforward: a simple Deno script using the SQLite module with restricted permissions, executing an ATTACH DATABASE statement to demonstrate the bypass.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 14, 2026

Deno versions 2.2.0 through 2.2.4 contain an authorization bypass vulnerability in SQLite database handling that allows attackers to circumvent read/write database permission checks via the SQL ATTACH DATABASE statement. An unauthenticated remote attacker can exploit this with no user interaction to gain unauthorized read and write access to protected databases, achieving high confidentiality and integrity impact. Patch is available in Deno 2.2.5.

Affected VersionsENISA

deno 2.2.0, < 2.2.5

Affected Packages

cargo deno fix: 2.2.5
cargo deno_node fix: 0.134.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Deno is a secure-by-default runtime for JavaScript, TypeScript, and WebAssembly that implements a granular permission system to control access to system resources, including file system read/write operations. The vulnerability exists in Deno's SQLite integration (likely via the sql.js or similar WebAssembly SQLite binding) where the permission enforcement layer fails to validate the ATTACH DATABASE SQL statement. The ATTACH DATABASE clause in SQLite allows attaching additional database files at runtime; Deno's permission model checks are bypassed because the permission validation occurs at the initial database connection level but not during subsequent SQL statement execution. This is a classic example of CWE-863 (Incorrect Authorization) where security checks are applied inconsistently—the initial database open triggers permission validation, but the ATTACH DATABASE statement allows loading additional databases without re-checking permissions. Affected versions: Deno 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4 (CPE: cpe:2.3:a:denoland:deno:2.2.0:*:*:*:*:*:*:* through cpe:2.3:a:denoland:deno:2.2.4:*:*:*:*:*:*:*).

Know when Deno gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
SUSE CRITICAL

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

3
Patch released
Mar 14, 2026 - 17:29 nvd
Patch available
PoC Detected
Jul 02, 2025 - 13:17 vuln.today
Public exploit code
CVE Published
Jun 04, 2025 - 20:15 nvd
CRITICAL 9.1

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

A critical vulnerability in Deno versions 2.2.0-2.2.4 allows attackers to bypass database permission controls, potentially enabling unauthorized access to sensitive data. Organizations running affected Deno versions in production environments face immediate risk of data exfiltration and unauthorized database manipulation.

Recommended Action

Within 24 hours: Identify all systems running Deno 2.2.0-2.2.4 and assess their database access scope. Within 7 days: Upgrade all affected Deno instances to version 2.2.5 or later, and validate the patch in a staging environment first. Within 30 days: Conduct a security audit of database access logs during the vulnerable period to detect potential exploitation.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible, implement network-level database access controls to restrict Deno runtime connections to only explicitly required databases, and disable SQLite ATTACH DATABASE functionality at the application level if not operationally necessary.

Threat Intelligence Overview

EPSS Score
0.1%
Top 70% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Related Vulnerabilities in Deno Permission and Information Disclosure Bypass

View all 3

More in Deno

View all
CVE-2021-42139 CRITICAL POC
9.8 Oct 11

Deno Standard Modules before 0.107.0 allows Code Injection via an untrusted YAML file in certain configurations. Rated c

CVE-2024-27934 HIGH POC
8.8 Mar 21

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Rated high severity (CVSS 8.8), this vulnerability is low att

CVE-2024-27933 HIGH POC
8.8 Mar 21

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Rated high severity (CVSS 8.8), this vulnerability is low att

CVE-2023-28446 HIGH POC
8.8 Mar 24

Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Rated high

CVE-2025-61787 HIGH POC
8.1 Oct 08

Command injection on Windows in the Deno JavaScript/TypeScript runtime (versions prior to 2.5.3 and 2.2.15) allows attac

CVE-2024-27935 HIGH POC
8.3 Mar 21

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Rated high severity (CVSS 8.3), this vulnerability is remotel

CVE-2026-27190 HIGH POC
8.1 Feb 20

Command injection in Deno versions prior to 2.6.8 allows unauthenticated remote attackers to execute arbitrary commands

CVE-2026-22864 HIGH POC
8.1 Jan 15

Arbitrary code execution in Deno runtime versions before 2.5.6 allows unauthenticated attackers to bypass shell script e

CVE-2026-22863 HIGH POC
7.5 Jan 15

Deno versions up to 2.6.0 contains a vulnerability that allows attackers to have infinite encryptions (CVSS 7.5).

CVE-2023-26103 HIGH POC
7.5 Feb 25

Versions of the package deno before 1.31.0 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the upg

CVE-2023-22499 HIGH POC
7.5 Jan 17

Deno is a runtime for JavaScript and TypeScript that uses V8 and is built in Rust. Rated high severity (CVSS 7.5), this

CVE-2024-32477 HIGH POC
7.4 Apr 18

Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. Rated high severity (CVSS 7.4), this vul

Vendor StatusVendor

SUSE

Severity: Critical

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy