CVE-2025-48935
Rust vulnerability analysis and mitigation

Overview

CVE-2025-48935 affects Deno, a JavaScript, TypeScript, and WebAssembly runtime. The vulnerability was discovered in version 2.2.0 and affects all versions prior to 2.2.5. The issue was disclosed on June 4, 2025, and allows attackers to bypass Deno's permission read/write db permission check using the ATTACH DATABASE statement (GitHub Advisory).

Technical details

The vulnerability exists in Deno's node:sqlite implementation where the ATTACH DATABASE statement can be used to circumvent the runtime's permission system. The issue has been assigned a CVSS v4.0 score of 5.5 (MEDIUM) with the vector string 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 (NVD).

Impact

The vulnerability allows attackers to bypass Deno's security permissions system, specifically the read/write database permissions. This could enable unauthorized access to or modification of database files that should be restricted by the permission system (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Deno version 2.2.5. Users should upgrade to this version or later to receive the fix. The patch includes restrictions on the ATTACH DATABASE statement and sets the SQLITELIMITATTACHED to 0 to prevent this type of bypass (Deno Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management