CVE-2026-134309
Deferred Deferred - Pending Action

Authorization Bypass in SurrealDB via Shadowed Variables

Vulnerability report for CVE-2026-134309, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
surrealdb surrealdb From 1.0.0 (inc) to 3.999999 (inc)
surrealdb surrealdb 4.0.0
surrealdb surrealdb to 4.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-863 The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in SurrealDB 1.0.0 through 3.x allows authenticated users to bypass authorization checks by using protected variable names like $access, $auth, or $token as FOR loop variables. This shadows the actual session values, tricking the system into using attacker-controlled inputs for permission evaluations. As a result, unauthorized users can perform actions like reading, modifying, or deleting data despite permission restrictions.

Detection Guidance

To detect this vulnerability, check if your SurrealDB version is below 4.0.0. Run the command: surrealdb version. If the output shows a version earlier than 4.0.0, the system is vulnerable. Additionally, review query logs for suspicious nested FOR loops using protected variables like $access, $auth, or $token.

Impact Analysis

If you use SurrealDB versions 1.0.0 to 3.x, an attacker with authenticated access could exploit this to read, modify, or delete data they shouldn't have permission to access. This could lead to data breaches, unauthorized changes, or loss of data integrity. The impact depends on your database's sensitivity and the attacker's goals.

Compliance Impact

This vulnerability could lead to unauthorized data access or modifications, violating compliance requirements for data protection like GDPR or HIPAA. It may result in unauthorized exposure of personal or sensitive data, leading to legal penalties, loss of trust, and potential regulatory fines.

Mitigation Strategies

Upgrade SurrealDB to version 4.0.0 or later immediately. This patch prevents protected variable names from being used as FOR loop variables. If upgrading is not immediately possible, restrict authenticated user access to SurrealQL query submission until the upgrade is completed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134309. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...