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-109336 Overview
CVE-2026-109336 is an authorization bypass vulnerability in SurrealDB versions prior to 3.3.0. The flaw allows authenticated record users to read fields protected by field-level SELECT permissions through LIVE SELECT projections. Attackers project restricted fields from the unreduced $after or $before parameters under an alias. The database then returns exact stored values inside CREATE, UPDATE, and DELETE change notifications. The issue is tracked under CWE-863: Incorrect Authorization and affects confidentiality of record data.
Critical Impact
Low-privileged record users can read field values that administrators intentionally hid behind field-level SELECT permissions, breaking confidentiality controls on protected columns.
Affected Products
- SurrealDB versions prior to 3.3.0
- Deployments exposing record user authentication over the network
- Applications relying on field-level SELECT permissions as a confidentiality boundary
Discovery Timeline
- 2026-10-12 - CVE-2026-109336 published to the National Vulnerability Database (NVD)
- 2026-10-12 - Last updated in NVD database
Technical Details for CVE-2026-109336
Vulnerability Analysis
SurrealDB enforces access control at multiple layers, including table-level and field-level permissions. Field-level SELECT clauses let administrators restrict which fields a given role can read. The LIVE SELECT feature streams change notifications to subscribed clients when matching records are created, updated, or deleted.
The permission reducer that normally strips restricted fields from query output is not applied to the $before and $after change parameters when they are projected through an alias. A record user can therefore write a LIVE SELECT that aliases a hidden field from these parameters. The server returns the raw stored value in every subsequent notification.
Because enforcement happens asymmetrically, the vulnerability subverts the field-permission model without triggering any authentication or injection anomaly. The access is logged as a legitimate query from a valid session.
Root Cause
The root cause is incomplete authorization enforcement during projection expansion of live query change events. The engine evaluates field-level SELECT permissions on direct field references but not on expressions that read fields through the unreduced $after or $before document under an alias.
Attack Vector
Exploitation requires network access to the SurrealDB endpoint and valid record user credentials. The attacker subscribes to a LIVE SELECT query that projects the target hidden field from $after or $before under an alias. Each subsequent CREATE, UPDATE, or DELETE on the watched table delivers the restricted field value to the subscriber. No elevated privilege, user interaction, or complex payload is required.
No verified public proof-of-concept code is available. Technical details are described in the SurrealDB GitHub Security Advisory GHSA-pm6c-q8rh-92m8 and the VulnCheck advisory on SurrealDB field permission bypass.
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 AttacksDetection Methods for CVE-2026-109336
Indicators of Compromise
- LIVE SELECT statements that reference $after or $before with aliases targeting fields known to be restricted by SELECT permissions.
- Record user sessions subscribing to live queries on tables containing confidential columns.
- Elevated volumes of live notification traffic to a single record user session following a LIVE subscription.
Detection Strategies
- Audit SurrealDB query logs for LIVE SELECT statements that project $after.<field> or $before.<field> under alias syntax (AS).
- Compare projected field names in live queries against the field-permission schema to flag mismatches.
- Correlate record user authentication events with subscriptions to tables holding sensitive fields.
Monitoring Recommendations
- Enable verbose query logging on SurrealDB nodes and forward logs to a centralized analytics platform for retention and search.
- Alert on new LIVE SELECT subscriptions by non-administrative principals against production tables.
- Baseline normal live-query usage per application and investigate deviations in subscriber identity or projected fields.
How to Mitigate CVE-2026-109336
Immediate Actions Required
- Upgrade SurrealDB to version 3.3.0 or later across all cluster nodes.
- Inventory record user accounts and revoke credentials that do not require LIVE SELECT capability.
- Review LIVE SELECT usage in application code to confirm no queries rely on unreduced $before or $after projections.
Patch Information
The vendor fixed the issue in SurrealDB 3.3.0. The patched release applies field-level SELECT permission reduction to $before and $after parameters during live query projection. Refer to the SurrealDB GitHub Security Advisory GHSA-pm6c-q8rh-92m8 for release notes and upgrade guidance.
Workarounds
- Restrict or disable record user permissions to execute LIVE SELECT statements on tables containing confidential fields until the upgrade is applied.
- Remove sensitive fields from tables watched by live queries, or move them to separate tables accessible only to privileged roles.
- Place SurrealDB behind an application-layer proxy that filters outbound LIVE SELECT queries referencing $before or $after aliases.
# Example: verify installed SurrealDB version and upgrade
surreal version
# Upgrade to the patched release
# (Replace with the appropriate package manager or container tag for your deployment)
docker pull surrealdb/surrealdb:v3.3.0
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

