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
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | surrealdb | >=1.0.0, <4.0.0 | 4.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
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-ffvm-mqh3-7986 vendor-advisory
- https://www.vulncheck.com/advisories/surrealdb-1.0.0-before-4.0.0-authorization-bypass-via-for-loop-variable-shadowing third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134309.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-134309 advisory