CVE-2026-109334

SurrealDB before 3.3.0 Cross-Tenant Access via Surreal-NS/Surreal-DB Headers and RPC use

Published Oct 12, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 13, 2026, 4:54 PM
Reserved
Oct 12, 2026, 2:18 PM
Status
Deferred
Published
Oct 12, 2026, 5:17 PM
Modified
Oct 13, 2026, 5:17 PM