# CVE-2026-134309: SurrealDB 1.0.0 before 4.0.0 Authorization Bypass via FOR Loop Variable Shadowing

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-21T16:35:00.400Z
- Modified: 2026-11-23T16:17:31.137Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: from 1.0.0 before 4.0.0 (not affected: 4.0.0)

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-ffvm-mqh3-7986> (exploit, 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)

## Sources

- CVE List: [CVE-2026-134309](https://www.cve.org/CVERecord?id=CVE-2026-134309), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-134309](https://nvd.nist.gov/vuln/detail/CVE-2026-134309), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-134309 · Whole record: https://cve.day/CVE-2026-134309.json · Rebuilt by cve.day 2026-11-25T22:59:52.539Z
