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-109335 Overview
CVE-2026-109335 is an information disclosure vulnerability in SurrealDB versions 3.0.0 through 3.2.x, fixed in 3.3.0. The flaw lets record users bypass field-level SELECT permissions by reading values exposed through COMPUTED fields. Attackers can also abuse write RETURN clauses with $before and $after to surface hidden field values. The weakness is tracked under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Critical Impact
Authenticated record users can read protected field values that field-level SELECT permissions are meant to hide, breaking tenant isolation and confidentiality guarantees.
Affected Products
- SurrealDB 3.0.0 through 3.2.x
- SurrealDB deployments relying on field-level SELECT permissions for data isolation
- Applications exposing SurrealDB record users with query access to tables containing COMPUTED fields
Discovery Timeline
- 2026-10-12 - CVE-2026-109335 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-109335
Vulnerability Analysis
SurrealDB enforces field-level access with PERMISSIONS clauses on DEFINE FIELD statements. These permissions determine whether a record user can SELECT, CREATE, UPDATE, or DELETE a given field. The vulnerability stems from permission checks failing to propagate through derived values. When a COMPUTED field derives its value from another field protected by SELECT permissions, the computed output is returned to the caller even if the source field is unreadable.
A second variant occurs with write operations. The RETURN $before and RETURN $after clauses on CREATE, UPDATE, and DELETE statements expose full record snapshots. These snapshots include fields that the record user does not have SELECT permission to read.
The net effect is a confidentiality break for multi-tenant or role-scoped data models that rely on field-level permissions to hide sensitive columns such as API keys, hashes, or personally identifiable information.
Root Cause
The root cause is incomplete enforcement of field-level SELECT permissions during value derivation and record return paths. The query planner evaluates COMPUTED field expressions and $before/$after snapshots without filtering the component fields against the caller's SELECT permissions.
Attack Vector
An authenticated record user issues a SELECT query that reads a COMPUTED field whose expression references a hidden source field. The returned value exposes the hidden data. Alternatively, the attacker performs an UPDATE or CREATE with a RETURN BEFORE or RETURN AFTER clause and parses the returned snapshot. Both paths require only standard record-user credentials and network reachability to the SurrealDB endpoint.
See the GitHub Security Advisory GHSA-2jj6-v2fq-rwpp for schema reproduction details.
Detection Methods for CVE-2026-109335
Indicators of Compromise
- Query logs containing SELECT statements that reference COMPUTED fields on tables with field-level PERMISSIONS clauses
- UPDATE, CREATE, or DELETE statements that include RETURN BEFORE or RETURN AFTER clauses issued by record-scope users
- Unexpected read volume from record users against tables containing sensitive fields such as credentials or tokens
Detection Strategies
- Inventory DEFINE FIELD statements that declare VALUE or COMPUTED expressions and cross-reference them against sibling fields that carry restrictive SELECT permissions
- Audit SurrealDB query telemetry for record-user sessions issuing RETURN $before or RETURN $after on tables containing protected fields
- Compare application-layer access patterns against expected record-user scopes to identify queries that resolve derived values from hidden sources
Monitoring Recommendations
- Forward SurrealDB access logs to a centralized analytics platform and alert on record-user queries touching tables with field-level permissions
- Track SurrealDB release metadata and version strings reported by deployed instances to confirm patched builds
- Enable query auditing for authentication scopes and review anomalous SELECT patterns against sensitive schemas
How to Mitigate CVE-2026-109335
Immediate Actions Required
- Upgrade SurrealDB to version 3.3.0 or later across all environments
- Rotate any secrets, tokens, or credentials stored in fields that record users could have read through COMPUTED expressions or RETURN clauses
- Review DEFINE FIELD ... COMPUTED definitions and remove references to fields that must remain hidden from record users
Patch Information
The fix is included in SurrealDB 3.3.0. Refer to the GitHub Security Advisory GHSA-2jj6-v2fq-rwpp and the VulnCheck Advisory for SurrealDB for upstream release notes and remediation guidance.
Workarounds
- Remove or rewrite COMPUTED fields that derive values from SELECT-restricted source fields until the upgrade is applied
- Deny RETURN BEFORE and RETURN AFTER usage at the application layer for record-user sessions by validating and rewriting queries before dispatch
- Move sensitive fields into separate tables protected by table-level PERMISSIONS rather than relying on field-level SELECT restrictions
# Verify installed SurrealDB version and confirm it is 3.3.0 or later
surreal version
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

