Description
SurrealDB before 3.3.0 allows cross-tenant access because the SurrealQL USE statement switches a session to any namespace/database without checking that the caller's authenticated level covers it. Authenticated namespace, database, or record users can switch to another tenant and read, create, update, or delete rows in tables whose PERMISSIONS allow it, such as PERMISSIONS FULL.
Published: 2026-10-12
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized cross‑tenant data access
Action: Update immediately
AI Analysis

Impact

The SurrealDB database server before version 3.3.0 contains a permission enforcement flaw in the SurrealQL USE statement. The statement allows a client to switch the session namespace and database to any target without verifying the caller’s authenticated privilege level. As a result, users who have been granted namespace, database, or record level access can elevate their access to a different tenant and read, create, update, or delete data in tables that expose broad permissions such as PERMISSIONS FULL. This flaw can lead to confidential data exposure, data integrity violations, and unauthorized data manipulation across tenants.

Affected Systems

The affected product is SurrealDB, the open‑source database engine. All releases prior to 3.3.0 are vulnerable. Any deployment using a pre‑3.3.0 build is at risk.

Risk and Exploitability

The CVSS score of 8.6 places the issue in the high severity category, indicating significant impact once exploited. Because EPSS data is not available, the likelihood of current exploitation is unknown, and the vulnerability is not yet listed in the CISA KEV catalog. In a multi‑tenant environment where tenants share a single database instance, any authenticated user with even limited privilege can abuse the USE statement to gain read, write, or delete capabilities on other tenants’ data. If an attacker can obtain valid credentials or trick an application into executing a USE statement, the exploitation path is straightforward: connect, authenticate, issue an arbitrary USE to a target namespace, then perform data operations within that tenant. Given the broad permission models available, the potential for data loss or leakage is considerable.

Generated by OpenCVE AI on October 12, 2026 at 18:31 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.3.0 or newer to apply the fix that enforces permission checks on the USE statement.
  • Audit current tenant configurations to ensure no user holds overly broad permissions such as PERMISSIONS FULL across tenants; restrict or remove such permissions where possible.
  • Implement application‑level controls that limit the use of the USE statement to trusted administrative users only, and monitor query logs for unexpected namespace switches.

Generated by OpenCVE AI on October 12, 2026 at 18:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 12 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Description SurrealDB before 3.3.0 allows cross-tenant access because the SurrealQL USE statement switches a session to any namespace/database without checking that the caller's authenticated level covers it. Authenticated namespace, database, or record users can switch to another tenant and read, create, update, or delete rows in tables whose PERMISSIONS allow it, such as PERMISSIONS FULL.
Title SurrealDB before 3.3.0 Cross-Tenant Access via USE Statement
First Time appeared Surrealdb
Surrealdb surrealdb
Weaknesses CWE-639
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Vendors & Products Surrealdb
Surrealdb surrealdb
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-13T16:14:08.944Z

Reserved: 2026-10-12T14:19:01.653Z

Link: CVE-2026-109343

cve-icon Vulnrichment

Updated: 2026-10-13T16:13:50.329Z

cve-icon NVD

Status : Deferred

Published: 2026-10-12T17:17:30.890

Modified: 2026-10-13T17:17:26.457

Link: CVE-2026-109343

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T07:45:17Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key