Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege record user
-
ExploitSwitch session to foreign namespace/database
-
ExecutionIssue RETURN with FETCH on known record id
-
ImpactRead another tenant's records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) a valid authenticated SurrealDB record-user session (PR:L - not anonymous); (2) a multi-tenant deployment with more than one namespace/database on the shared instance; (3) knowledge of a valid record id in the targeted foreign namespace/database; (4) the attacker switching to that foreign namespace/database and using a RETURN … FETCH query to resolve the record id; and (5) the target table's PERMISSIONS being configured to allow reads for the resolving context. Limiting factors that reduce realistic risk: the attacker must already be authenticated, must know or guess a specific record id, and the data is only exposed where table PERMISSIONS permit reads - single-tenant or strictly permissioned deployments are not affected. Impact is limited to data disclosure; no write/modify or availability effect. |
| Impact | The vendor CVSS 4.0 score of 7.1 (High) is driven by a network vector (AV:N), low attack complexity (AC:L), no attack requirements (AT:N), no user interaction (UI:N), and high confidentiality impact (VC:H) with no integrity or availability impact (VI:N/VA:N) and no subsequent-system/scope impact (SC:N). Critically, PR:L confirms this is NOT unauthenticated - the attacker must already hold a valid SurrealDB record-user credential, which meaningfully lowers real-world risk versus a pre-auth flaw. No EPSS score was provided, the CVE is not listed in CISA KEV, and no public proof-of-concept is referenced, so exploitation is currently theoretical/disclosure-stage rather than demonstrated. The impact is read-only cross-tenant data disclosure (classic CWE-862 Missing Authorization), not code execution or data tampering. Net assessment: a genuine multi-tenancy isolation flaw that matters for SurrealDB Cloud / shared-instance operators, but the authentication requirement, the need to know a valid target record id, and the dependency on permissive table PERMISSIONS make it a targeted-abuse issue rather than a mass-exploitation emergency. Note the input tag 'Authentication Bypass' conflicts with the description and CWE-862, which describe an AUTHORIZATION bypass - verify tagging. |
| Exploit ScenarioDerived | A legitimately authenticated SurrealDB record user on a shared multi-tenant instance switches their session to another tenant's namespace/database and issues a RETURN … FETCH query naming a record id they know or can guess, causing the engine to resolve and return records belonging to that foreign tenant where table PERMISSIONS permit reads. No public exploit code is identified at time of analysis, so this requires the attacker to craft the query manually, but the low attack complexity means the technique is straightforward once a record id is known. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 12, 2026
Authorization bypass in SurrealDB 3.0.0 through 3.3.0 allows authenticated record users to read records from other namespaces or databases by resolving record IDs via FETCH queries. Attackers can switch to a foreign namespace/database and use a RETURN … FETCH query to read another tenant's data if table PERMISSIONS allow reads. No public exploit identified at time of analysis; exploitation requires a valid authenticated session, multi-tenant deployment, and knowledge of a specific record ID.
RemediationAI
Upgrade to SurrealDB 3.3.0 or later, which contains the vendor-released patch. Refer to the GitHub advisory (https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3vw5-j55x-486h) for upgrade instructions. If upgrading is not immediately possible, as a compensating control, review and strictly limit table PERMISSIONS for record users to the minimum necessary, ensuring that cross-namespace reads are not permitted; note that this may break legitimate multi-tenant functionality that relies on cross-namespace access. Additionally, restrict record users from switching to foreign namespaces/databases by enforcing namespace-level access controls, though this requires custom implementation and careful testing. The VulnCheck advisory (https://www.vulncheck.com/advisories/surrealdb-3.0.0-before-3.3.0-cross-tenant-record-read-via-return-fetch) provides further 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 supports namespaces and databases for multi-tenancy. The vulnerability, classified as CWE-862 (Missing Authorization), arises because the database fails to enforce authorization checks when resolving record IDs through the FETCH clause in a RETURN query. An authenticated record user can specify a foreign namespace/database and a known record ID, causing the FETCH operation to read data without verifying that the user has permission to access that namespace/database. The affected CPE is cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* with version range 3.0.0 before 3.3.0. The independent assessment notes that exploitation requires a valid authenticated session (PR:L), a multi-tenant deployment, knowledge of a record ID, and table PERMISSIONS that allow reads; impact is limited to confidentiality (C:H) with no integrity or availability impact.
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:N/VA:N/SC:N/SI:N/SA:N
Network-reachable query interface (AV:N/AC:L) requiring a valid record-user credential (PR:L) with no UI; only cross-tenant read disclosure, so C:H and I:N/A:N, scope unchanged as the same SurrealDB authority governs access.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SurrealDB from 3.0.0 before 3.3.0 contains an authorization bypass vulnerability that allows authenticated record users to read records in other namespaces or databases by resolving record ids through FETCH. Attackers can switch to a foreign namespace/database and name a known record id in a RETURN … FETCH query to read another tenant's data when table PERMISSIONS allow reads.
Technical POC Analysis
Evidence note: the supplied material is the GitHub advisory GHSA-3vw5-j55x-486h plus commit titles.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SurrealDB versions 3.0.0 through 3.3.0 contain an authorization bypass that can let a record-level user read data belonging to a different tenant namespace or database, breaking the tenant isolation that multi-tenant deployments depend on. Only organizations running SurrealDB in a shared, multi-tenant configuration are exposed, and a successful read requires a valid session plus knowledge of a specific record identifier. Leadership should care because cross-tenant data exposure directly undermines customer contractual commitments and could trigger privacy notification obligations, even though the flaw is not currently being exploited at scale.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict SurrealDB deployments to single-tenant instances where feasible; scope record-user credentials and tokens to a single namespace/database; tighten table PERMISSIONS so cross-tenant record reads fail closed; limit knowledge of record IDs by avoiding client-side exposure of enumerable identifiers; and monitor queries for cross-namespace FETCH or RETURN ... FETCH access attempts.
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 data access in SurrealDB before 3.3.0 allows an authenticated namespace- or database-level SYSTEM user to b
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
EUVD-2026-97635
GHSA-7r25-4gw2-w5j3
NVD
CVE.org
EPSS
Exploit-DB