CVE-2026-134309 SurrealDB 1.0.0 before 4.0.0 Authorization Bypass via FOR Loop Variable Shadowing
HighCVSS 8.7
EPSS 0.47%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io surrealdb | >= 1.0.0, < 4.0.0 | 4.0.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io surrealdb | >= 1.0.0, < 4.0.0 | 4.0.0 |
References
- GitHub Security Advisory (GHSA-ffvm-mqh3-7986) exploit vendor-advisory
- VulnCheck Advisory: SurrealDB 1.0.0 before 4.0.0 Authorization Bypass via FOR Loop Variable Shadowing third-party-advisory
- ENISA EUVD EUVD-2026-132247 third-party-advisory
- nvd.nist.gov