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

Published Updated

Authenticated SurrealDB users can shadow protected access, auth and token variables with FOR loops to read, modify or delete data as a viewer.

CVSS score

High

8.7/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
4.0.0
Attack path
Over the internet
Any signed-in user, no user action

What is CVE-2026-134309?

CVE-2026-134309 is a high-severity authentication bypass vulnerability in surrealdb, published on 21 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-863

How severe is CVE-2026-134309?

CVE-2026-134309 scores 8.7 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
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

Which versions are affected by CVE-2026-134309?

1 open source package ship an affected version, including surrealdb.

An affected version is exposed as installed. No special setting or call is needed.

PackageAffectedFixed in
surrealdb crates.io
pkg:cargo/surrealdb
From 1.0.04.0.0

How do I fix CVE-2026-134309?

Upgrade surrealdb to 4.0.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-134309 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-134309 exists.

Sources

Also known as GHSA-ffvm-mqh3-7986, GHSA-hp3c-r98p-8chh.

Is CVE-2026-134309 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free