Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-level NS/DB user
-
ExploitSet forged Surreal-NS/Surreal-DB headers on /sql or call RPC 'use'
-
ExecutionServer skips tenant/level authorization check
-
ImpactRead/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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica
Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi
Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the
SurrealDB versions before 3.3.0 fail to validate a caller's authorization level when the SurrealQL USE statement switche
Cross-tenant authorization bypass in SurrealDB before 3.2.0 lets any authenticated user reach custom API endpoints belon
Arbitrary file read in SurrealDB before 3.1.5 lets an authenticated database user holding the EDITOR or OWNER role discl
Confused-deputy privilege escalation in SurrealDB before 2.5.0 and before 3.0.0-beta.3 lets a low-privileged user (e.g.
Denial of service in SurrealDB before 3.1.5 lets an authenticated user with query-execution privileges crash the entire
Denial of service in SurrealDB versions before 3.3.0 lets a query-capable authenticated user with embedded JavaScript sc
Authenticated SurrealDB record users can read field values that field-level SELECT permissions are meant to conceal on S
EUVD-2026-97636
GHSA-jhvg-6gg5-qpmp
NVD
CVE.org
EPSS
Exploit-DB