All vulnerabilities

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
Weakness
Incorrect authorization (CWE-863)
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.

From the CVE Program.

Affected software

SoftwareAffected versions
surrealdbcrates.io · osv:crates.io:surrealdb
  • From 1.0.0 before 4.0.0

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

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-134309