Skip to main content
Vulnerability Database/CVE-2026-109337

CVE-2026-109337: SurrealDB Auth Bypass Vulnerability

CVE-2026-109337 is an authorization bypass flaw in SurrealDB that allows record users to infer hidden field values through LIVE SELECT predicates. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109337 Overview

CVE-2026-109337 is an authorization bypass vulnerability in SurrealDB versions before 3.3.0. The flaw allows authenticated record users to infer field values protected by field-level SELECT permissions. Attackers abuse LIVE SELECT WHERE predicates referencing $before or $after to observe notification delivery on CREATE, UPDATE, or DELETE events. By crafting repeated predicates and watching which notifications fire, an attacker can confirm or narrow restricted field values. The weakness is categorized as [CWE-203] Observable Discrepancy, a side-channel information disclosure pattern. The issue affects confidentiality of hidden fields without impacting integrity or availability.

Critical Impact

Authenticated record users can bypass field-level SELECT permissions and extract values of restricted fields via side-channel observation of live query notifications.

Affected Products

  • SurrealDB versions prior to 3.3.0
  • Deployments exposing record user authentication over network interfaces
  • Applications relying on field-level SELECT permissions to protect sensitive attributes

Discovery Timeline

  • 2026-10-12 - CVE-2026-109337 published to NVD
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-109337

Vulnerability Analysis

SurrealDB enforces access control at multiple layers, including per-field SELECT permissions that redact column values from unauthorized record users. The LIVE query subsystem subscribes clients to future mutations and evaluates a WHERE predicate against $before and $after document snapshots. Prior to version 3.3.0, predicate evaluation did not consistently apply field-level SELECT permissions. The server evaluated expressions over the underlying raw values rather than the permission-filtered projection.

The outcome is an observable discrepancy. When a mutation satisfies the predicate, the client receives a notification; when it does not, the client receives nothing. This boolean signal leaks information about fields the user is not authorized to read. Because the attacker controls the predicate expression, they can perform binary-search style queries to recover exact values of numeric, string, or boolean fields over successive write events.

Root Cause

The root cause is a mismatch between read authorization enforcement and predicate evaluation in the LIVE SELECT execution path. Field-level SELECT permissions correctly redact query results, but the predicate engine evaluates $before and $after expressions against the full record. The notification delivery decision becomes a side channel disclosing restricted field contents.

Attack Vector

An authenticated record user registers a LIVE SELECT subscription on a target table with a WHERE clause referencing a restricted field in $before or $after. The attacker issues predicates such as range comparisons or equality checks and observes which mutations trigger notifications. Repeated queries, each narrowing the hypothesis, allow the attacker to reconstruct hidden values whenever a legitimate CREATE, UPDATE, or DELETE occurs on monitored records.

No code example is published. Refer to the GitHub Security Advisory GHSA-jm88-9wvx-6h4q and the VulnCheck Advisory on SurrealDB for detailed technical analysis.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-109337

Indicators of Compromise

  • High volume of LIVE SELECT subscriptions from a single record user, especially with varying WHERE predicates targeting the same table.
  • Repeated LIVE queries whose predicates reference fields the subscribing user cannot SELECT directly.
  • Patterns of narrow range or equality predicates on $before or $after across short time windows, consistent with binary-search probing.

Detection Strategies

  • Audit SurrealDB query logs for LIVE SELECT statements with complex predicates on restricted fields.
  • Correlate record user identity with the field permission schema to flag subscriptions that reference columns outside the user's SELECT scope.
  • Baseline normal LIVE query behavior per application role and alert on deviations in subscription frequency or predicate diversity.

Monitoring Recommendations

  • Enable verbose query auditing on SurrealDB nodes and forward logs to a centralized analytics platform.
  • Track notification delivery counts per subscription and surface anomalies indicative of probing behavior.
  • Monitor authentication events for record users that establish many short-lived LIVE sessions.

How to Mitigate CVE-2026-109337

Immediate Actions Required

  • Upgrade all SurrealDB instances to version 3.3.0 or later.
  • Inventory record users and revoke privileges for accounts that do not require LIVE SELECT capability.
  • Review field-level SELECT permissions and confirm sensitive fields are not referenceable in predicates by unauthorized roles.

Patch Information

The vulnerability is fixed in SurrealDB 3.3.0. The patch aligns LIVE SELECT predicate evaluation with field-level SELECT permissions so predicates referencing restricted fields no longer leak information through notification delivery. See the GitHub Security Advisory GHSA-jm88-9wvx-6h4q for the official vendor fix and release notes.

Workarounds

  • Disable or restrict LIVE SELECT for record users on tables containing permission-protected fields until patching is complete.
  • Enforce schema-level separation by moving sensitive fields into tables that record users cannot subscribe to.
  • Apply network-level controls to limit which clients can establish long-lived LIVE query sessions.
bash
# Example: restrict LIVE query permission on a sensitive table
DEFINE TABLE sensitive_records SCHEMAFULL
  PERMISSIONS
    FOR select, create, update, delete WHERE $auth.role = 'admin';

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.