crates.io
CVE-2026-134309
SurrealDB 1.0.0 before 4.0.0 Authorization Bypass via FOR Loop Variable Shadowing
- Severity
- High 8.7
- Published
- 21 Nov 2026
- Last changed
- 21 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 4.0.0
- Exploit chance
- 0.6% in the next 30 daysHigher than 47% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N- Sources
- CVE Program
Description
SurrealDB 1.0.0 before 4.0.0 contains an authorization bypass vulnerability that allows authenticated users to shadow protected $access, $auth, and $token variables by binding them as FOR loop variables. Attackers can wrap queries in nested FOR loops with forged values to satisfy table permission predicates, enabling unauthorized reads, modifications, or deletions as a VIEWER.
Affected software
| Software | Affected versions |
|---|---|
surrealdbcrates.io · osv:crates.io:surrealdb |
|
About surrealdb
- Downloads in the last 90 days (crates.io)
- 611,769crates.io, 24 Nov 2026
- Total downloads (crates.io)
- 1,955,161crates.io, 24 Nov 2026
Vulnerabilities in surrealdb
- In our list
- 25
- Published in the last 12 months
- 25
- Critical, last 12 months
- 1
- High, last 12 months
- 16
- Known exploited
- 0
- CVE-2026-134288SurrealDB 3.0.0 before 4.0.0 Event THROW Guard Bypass via Interactive TransactionsHigh 7.1 21 Nov 2026
- CVE-2026-134289SurrealDB 1.0.0 before 4.0.0 Credential Disclosure via CLI Help OutputMedium 4.1 21 Nov 2026
- CVE-2026-134290SurrealDB 2.2.0 before 4.0.0 Information Disclosure via ON DELETE REJECT ErrorsHigh 7.1 21 Nov 2026
- CVE-2026-134291SurrealDB 3.0.0 before 4.0.0 Path Traversal via Filesystem Bucket SymlinksHigh 8.7 21 Nov 2026
- CVE-2026-134292SurrealDB 1.0.0 before 4.0.0 Function Capability Bypass via JavaScript Built-in BridgeCritical 9.3 21 Nov 2026
- CVE-2026-134293SurrealDB 3.1.0 before 4.0.0 SQL Injection via MCP Tool Identifier Escaped BackticksHigh 8.8 21 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-134309