← VULNERABILITIES

CVE-2026-134309

SurrealDB 1.0.0 before 4.0.0 Authorization Bypass via FOR Loop Variable Shadowing

High · 8.7Fix available
CVSS
8.7
EPSS
0.47% (p33)
Published
2026-11-21
Age
8d old
Modified
2026-11-23
Product
surrealdb surrealdb
Aliases
GHSA-ffvm-mqh3-7986

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

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.

Fixed in

4.0.0

Affected packages

EcosystemPackageRangeFixed
vendorsurrealdb>=1.0.0, <4.0.04.0.0

Sources

  • NVD · first seen 8d ago · NVD terms of use
  • OSV · first seen 8d ago · CC-BY 4.0
  • CVE List · first seen 8d ago · CVE Terms of Use

References

JSON