Description
SurrealDB before 3.3.0 does not check the caller-selected namespace or database against the level at which a namespace- or database-level system user authenticated, allowing cross-tenant access. An authenticated attacker can set the Surreal-NS/Surreal-DB headers on /sql or call the RPC use method to read, create, modify, and delete rows and read DEFINE PARAM values in another tenant where table PERMISSIONS allow it.
Published: 2026-10-12
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation / Unauthorized Cross‑Tenant Access
Action: Patch Now
AI Analysis

Impact

SurrealDB versions prior to 3.3.0 fail to verify the namespace or database supplied in the Surreal-NS and Surreal-DB HTTP headers. When an authenticated user sets these headers on the /sql endpoint or calls the RPC use method, the server grants access to any namespace or database the user is authenticated against, even if it belongs to a different tenant. This flaw allows the attacker to read, create, modify, and delete rows, as well as read DEFINE PARAM values, in other tenants' tables that have permissive permissions. The vulnerability directly impacts confidentiality, integrity, and availability of data belonging to other tenants.

Affected Systems

All SurrealDB installations running a version earlier than 3.3.0 are affected. The vendor list includes the product SurrealDB by SurrealDB, Inc. No specific sub‑versions have been identified; any build before 3.3.0 contains the flaw.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity level and the EPSS score for this vulnerability is not available, so the current exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attacker can remotely exploit the flaw by targeting the /sql HTTP endpoint or by invoking the RPC use method. An authenticated user can send requests with the vulnerable Surreal-NS or Surreal-DB headers, and the attacker only needs valid credentials; no privileged access or local compromise is required. Once exploited, the attacker can access and manipulate data across tenant boundaries, potentially leading to data leakage or service disruption.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.3.0 or later, which implements validation of the Surreal-NS and Surreal-DB headers.
  • If an upgrade is not immediately possible, restrict access to the /sql endpoint and RPC use method, and enforce strict tenant isolation by validating header values against the authenticated user's namespace or database.
  • Monitor network traffic for unexpected Surreal-NS or Surreal-DB header usage and audit logs for cross‑tenant row modifications.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
Description SurrealDB before 3.3.0 does not check the caller-selected namespace or database against the level at which a namespace- or database-level system user authenticated, allowing cross-tenant access. An authenticated attacker can set the Surreal-NS/Surreal-DB headers on /sql or call the RPC use method to read, create, modify, and delete rows and read DEFINE PARAM values in another tenant where table PERMISSIONS allow it.
Title SurrealDB before 3.3.0 Cross-Tenant Access via Surreal-NS/Surreal-DB Headers and RPC use
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:54:08.346Z

Reserved: 2026-10-12T14:18:12.389Z

Link: CVE-2026-109334

cve-icon Vulnrichment

Updated: 2026-10-13T15:48:51.202Z

cve-icon NVD

Status : Deferred

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

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

Link: CVE-2026-109334

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-12T20:00:14Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key