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-109333 Overview
CVE-2026-109333 is an authorization bypass vulnerability in SurrealDB versions 3.0.0 through 3.2.x. The flaw allows authenticated record users to read records belonging to other namespaces or databases by resolving record identifiers through the FETCH clause. An attacker switches to a foreign namespace or database, references a known record id in a RETURN ... FETCH query, and retrieves another tenant's data when table PERMISSIONS allow reads. The vulnerability is classified as [CWE-862: Missing Authorization] and breaks the multi-tenant isolation model that SurrealDB users rely on for data segregation.
Critical Impact
Authenticated record users can read records from foreign namespaces or databases, breaking tenant isolation in multi-tenant SurrealDB deployments.
Affected Products
- SurrealDB 3.0.0 through 3.2.x (fixed in 3.3.0)
- Multi-tenant SurrealDB deployments using record-level authentication
- Applications relying on namespace or database boundaries for data isolation
Discovery Timeline
- 2026-10-12 - CVE-2026-109333 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-109333
Vulnerability Analysis
SurrealDB organizes data into namespaces and databases to provide logical isolation between tenants. Record users authenticate within a specific namespace and database and should be restricted to data visible within that scope. The vulnerability stems from the query engine failing to re-check authorization boundaries when a record id is resolved through a FETCH clause after a namespace or database switch.
The flaw affects queries of the form RETURN <record_id> FETCH <field>. When an authenticated record user issues such a query against a namespace or database they do not own, the server resolves the referenced record if table-level PERMISSIONS evaluate to a read allowance. The server does not enforce that the requesting principal belongs to the target tenant. As a result, cross-tenant reads succeed whenever permissive table rules are configured, which is common for public-read tables within a tenant.
Root Cause
The root cause is missing authorization enforcement in the record resolution path invoked by FETCH. Table PERMISSIONS were designed as the final gate for row visibility, but they operate under the assumption that the active session already belongs to the correct tenant. The RETURN ... FETCH path lets a session reference records in a foreign namespace or database without a corresponding tenant-boundary check.
Attack Vector
An authenticated record user with low privileges connects to the SurrealDB instance over the network. The attacker switches the active context to a target namespace and database using standard SurrealQL statements. The attacker then issues a RETURN ... FETCH query naming a record id they wish to read, such as a user, order, or secret record from the victim tenant. If the target table's PERMISSIONS clause allows reads, the server returns the record contents. The attacker needs no exploit code and no user interaction, only knowledge or enumeration of record identifiers.
See the GitHub Security Advisory GHSA-3vw5-j55x-486h and the VulnCheck advisory for SurrealDB for additional technical context.
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-109333
Indicators of Compromise
- Query logs showing USE NS or USE DB statements from record-user sessions targeting namespaces or databases outside the user's provisioned tenant.
- SurrealQL queries containing RETURN statements combined with FETCH clauses referencing fully qualified record ids from foreign tenants.
- Unexpected read volume on tables whose PERMISSIONS clauses evaluate to allow public reads within their own tenant.
Detection Strategies
- Baseline each record user's expected namespace and database context, then alert on sessions that issue statements referencing other tenant scopes.
- Parse SurrealQL query text for FETCH clauses that resolve record ids and correlate the record id namespace against the authenticated session scope.
- Monitor for enumeration patterns where a single authenticated session reads many record ids across multiple namespaces or databases in a short window.
Monitoring Recommendations
- Enable verbose query logging on SurrealDB nodes and forward logs to a centralized analytics platform for retention and search.
- Track authentication events for record users alongside subsequent namespace or database switches to build a session timeline.
- Review table PERMISSIONS definitions regularly and flag tables with permissive read rules that could be abused through cross-tenant queries.
How to Mitigate CVE-2026-109333
Immediate Actions Required
- Upgrade SurrealDB to version 3.3.0 or later across all nodes in the cluster to eliminate the authorization bypass.
- Audit table PERMISSIONS clauses and tighten read rules so they explicitly check the requesting user's tenant context, not just role.
- Rotate credentials for record users on multi-tenant SurrealDB instances and review query logs for signs of cross-tenant reads during the exposure window.
Patch Information
SurrealDB resolved the vulnerability in version 3.3.0. The fix enforces that record ids resolved through FETCH must belong to the active session's namespace and database. Operators running any 3.0.0 through 3.2.x release should upgrade immediately. Refer to the GitHub Security Advisory GHSA-3vw5-j55x-486h for release notes and upgrade guidance.
Workarounds
- Restrict record-user access at the network layer so each tenant can only reach a dedicated SurrealDB endpoint or instance, preventing cross-tenant context switching.
- Rewrite table PERMISSIONS clauses to compare the record's owning tenant against a session claim such as $auth.ns or $auth.db to reject foreign reads.
- Avoid shared, multi-tenant SurrealDB instances for sensitive data until the upgrade to 3.3.0 is complete.
# Verify running SurrealDB version and plan upgrade to 3.3.0 or later
surreal version
# Example upgrade check against a running instance
curl -s http://localhost:8000/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

