Skip to main content

SurrealDB EUVDEUVD-2026-97636

| CVE-2026-109334 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-10-12 VulnCheck GHSA-jhvg-6gg5-qpmp
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-level NS/DB user
  2. Exploit
    Set forged Surreal-NS/Surreal-DB headers on /sql or call RPC 'use'
  3. Execution
    Server skips tenant/level authorization check
  4. Impact
    Read/modify/delete victim tenant rows and DEFINE PARAM values

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Requires the attacker to already possess valid namespace-level or database-level SYSTEM user credentials on the target SurrealDB instance (PR:L) running a version before 3.3.0. The attacker then sets the Surreal-NS and/or Surreal-DB headers on the /sql endpoint or calls the RPC 'use' method to select a namespace/database other than the one they authenticated against. Exploitation is further limited by the target tenant's table PERMISSIONS clauses - cross-tenant read/create/modify/delete and DEFINE PARAM reads only succeed where those PERMISSIONS allow the operation. Practically, this is only impactful on shared multi-tenant deployments; a single-tenant instance has no other tenant to cross into.

Impact

This is a genuine authorization/multi-tenancy flaw (CWE-639, Authorization Bypass Through User-Controlled Key) rather than a merely high-scored paper issue. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) indicates a network-reachable, low-complexity attack requiring only low-level authentication - i.e., any legitimate namespace- or database-level SurrealDB user can pivot into other tenants. Impact is high on confidentiality and integrity (VC:H/VI:H) but none on availability (VA:N), consistent with the described read/create/modify/delete-rows capability. No EPSS score, CISA KEV listing, or public POC is present in the provided data, so there is no evidence of active exploitation - the risk is driven by severity and ease-of-exploit for an already-authenticated principal, not by observed in-the-wild activity. The real priority is high specifically for multi-tenant/SaaS deployments of SurrealDB where mutually distrusting tenants share an instance; for single-tenant deployments the practical exposure is much lower. One caveat: exploitation is explicitly gated by target table PERMISSIONS, so the blast radius depends on how permissively each tenant's tables are defined - a limiting factor the raw CVSS score does not capture.

Exploit ScenarioDerived

An attacker holds valid namespace- or database-level credentials for one tenant on a shared SurrealDB (before 3.3.0) instance. They send a request to /sql with forged Surreal-NS/Surreal-DB headers (or invoke the RPC 'use' method) pointing at a different tenant, and because the server never verifies the selected namespace/database against the level the user authenticated at, they read and tamper with the other tenant's rows and DEFINE PARAM values wherever table PERMISSIONS allow. No public exploit code is identified at time of analysis, but the technique is trivially scriptable given the low complexity.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 12, 2026

Cross-tenant data access in SurrealDB before 3.3.0 allows an authenticated namespace- or database-level SYSTEM user to bypass namespace/database scoping and read, create, modify, or delete rows and read DEFINE PARAM values in other tenants where table PERMISSIONS clauses permit. The CWE-639 authorization bypass is triggered by setting the Surreal-NS/Surreal-DB headers on the /sql endpoint or invoking the RPC 'use' method, as the server fails to validate the caller-selected namespace or database against the level at which the user authenticated. No public exploit identified at time of analysis; impact is limited to multi-tenant deployments and requires valid low-privilege credentials.

RemediationAI

Upgrade to SurrealDB 3.3.0 or later, which contains the vendor-released patch for this cross-tenant authorization bypass. If immediate upgrade is not possible, restrict network access to the /sql endpoint and RPC interface to trusted clients only, and review table PERMISSIONS clauses to ensure they cannot be abused for cross-tenant operations; these compensating controls may disrupt legitimate multi-tenant access but reduce exposure. Note that single-tenant deployments are not practically impacted. See the vendor advisory at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-w5v9-jc5f-5rmc and VulnCheck advisory at https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-cross-tenant-access-via-surreal-ns-surreal-db-headers-and-rpc-use for details.

Affected VersionsENISA

surrealdb 0 <3.3.0

Affected Packages

euvd surrealdb fix: 3.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SurrealDB is a multi-model database that organizes data into namespaces and databases, with system users defined at root, namespace, or database level. CVE-2026-109334 stems from CWE-639 (Authorization Bypass Through User-Controlled Key): the server does not verify that the namespace or database selected by the caller via the Surreal-NS/Surreal-DB HTTP headers on the /sql endpoint or the RPC 'use' method matches the scope at which the authenticated system user was granted access. An attacker with valid namespace- or database-level SYSTEM credentials (CVSS vector PR:L indicates authentication is required) can therefore operate in a different tenant's namespace or database, subject to the target tenant's table PERMISSIONS clauses. The affected product is SurrealDB (CPE cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*) before version 3.3.0. The independent assessment confirms this is a genuine authorization/multi-tenancy flaw, with exploitation practically limited to shared multi-tenant deployments; single-tenant instances have no other tenant to cross into.

Know when Surrealdb gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.6 HIGH
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
vuln.today AI 9.6 CRITICAL

Low-privilege authenticated user (PR:L) remotely bypasses tenant isolation; crossing into another tenant's security authority is a scope change (S:C) with high confidentiality/integrity and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 12, 2026 - 18:03 EUVD
CVE Published
Oct 12, 2026 - 16:05 cve.org
HIGH 8.6

DescriptionCVE.org

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.

Technical POC Analysis

CWE-639 (Authorization Bypass Through User-Controlled Key), with the advisory also tagging CWE-863.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity authorization flaw in SurrealDB deployments that host multiple tenants allows a user holding an account at one tenant to reach across namespace and database boundaries and read, alter, or delete data belonging to other tenants, including stored configuration parameters. Only organizations running multi-tenant SurrealDB instances are exposed; single-tenant deployments are not. Because the cross-tenant access is silent and indistinguishable from legitimate traffic in most setups, leadership should treat this as a potential undetected data-integrity and confidentiality exposure affecting customer data isolation commitments and contractual obligations.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable or tightly restrict namespace- and database-level SYSTEM accounts; rotate credentials for all low-privilege users; restrict network access to the /sql and RPC endpoints to trusted application tiers only; audit logs for Surreal-NS/Surreal-DB header manipulation and RPC 'use' invocations; tighten table and DEFINE PARAM PERMISSIONS clauses; and separate tenants into isolated instances where isolation is contractually required.

Threat Intelligence Overview

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Low
newer multi-model database, limited production/enterprise deployment footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2025-71392 CRITICAL
9.4 Jul 18

Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica

CVE-2026-63756 CRITICAL
9.2 Jul 20

Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act

CVE-2026-63760 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web

CVE-2026-63747 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi

CVE-2026-63757 HIGH
8.7 Jul 20

Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the

CVE-2026-109343 HIGH
8.6 Oct 12

SurrealDB versions before 3.3.0 fail to validate a caller's authorization level when the SurrealQL USE statement switche

CVE-2026-63735 HIGH POC
8.6 Jul 20

Cross-tenant authorization bypass in SurrealDB before 3.2.0 lets any authenticated user reach custom API endpoints belon

CVE-2026-63739 HIGH
8.3 Jul 20

Arbitrary file read in SurrealDB before 3.1.5 lets an authenticated database user holding the EDITOR or OWNER role discl

CVE-2026-63763 HIGH
7.5 Jul 20

Confused-deputy privilege escalation in SurrealDB before 2.5.0 and before 3.0.0-beta.3 lets a low-privileged user (e.g.

CVE-2026-63737 HIGH
7.1 Jul 20

Denial of service in SurrealDB before 3.1.5 lets an authenticated user with query-execution privileges crash the entire

CVE-2026-109338 HIGH
7.1 Oct 12

Denial of service in SurrealDB versions before 3.3.0 lets a query-capable authenticated user with embedded JavaScript sc

CVE-2026-109335 HIGH
7.1 Oct 12

Authenticated SurrealDB record users can read field values that field-level SELECT permissions are meant to conceal on S

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy