Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege database JWT (AC=low, RL=[])
-
ExploitSend GET /export for namespace/database
-
ExecutionExport skips table SELECT and field permissions
-
ImpactExfiltrate other users' rows and hidden fields
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
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 an authenticated database-scoped credential: a valid JWT for the target namespace and database with access level 'low' and no built-in Viewer role (RL=[]), as shown in the advisory PoC. The attacker must be able to reach the HTTP GET /export route, which authorizes only at the database 'View' level. The condition that makes data exposed is server-side: affected tables use row-level SELECT predicates (e.g. PERMISSIONS FOR SELECT WHERE ...) and/or field-level SELECT restrictions (e.g. PERMISSIONS FOR SELECT NONE) that the /export path fails to enforce - tables with FULL permissions expose nothing beyond what is already public. Limiting factors: the attacker needs a legitimate or stolen low-privilege database token (no unauthenticated access), the /export HTTP endpoint must be enabled and reachable, and the impact is read-only disclosure (no integrity or availability effect was evaluated). |
| Impact | The CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) scores 7.1 and is internally consistent with the evidence: network-reachable HTTP endpoint (AV:N), no special preconditions (AC:L/AT:N), low-privilege authentication required (PR:L), no user interaction, and a confidentiality-only impact (VC:H, VI/VA:N) - matching a read-only cross-user data disclosure. The vuln.today decision label is 'this_week' (not act_now/emergency), and there is no CISA KEV listing and no EPSS score in the supplied data, so widespread automated exploitation is not evidenced; the limiting factor is that the attacker must already hold a valid low-privilege database-scoped token. Against that, the GHSA advisory publishes a complete, deterministic, runtime-pinned proof-of-concept demonstrating the bypass, so the technical barrier to exploitation by any authenticated principal is effectively zero. Net: a genuine, high-confidence confidentiality issue worth prompt patching for any multi-tenant SurrealDB deployment, but not an internet-wide unauthenticated emergency - the PR:L requirement and absence of KEV/EPSS signals point to insider or compromised-credential abuse rather than mass exploitation. Data gap: EPSS probability is absent and cannot be weighed; also note the GHSA explicitly demonstrated the bypass only at revision 18971ff (a 3.3.0-nightly build) and states 'no broader release range is inferred,' which is narrower than the CVE/package claim of all 3.0.0 through <4.0.0 - verify the exact affected range with the vendor. |
| Exploit ScenarioDerived | An attacker holding a legitimate low-privilege, database-scoped JWT (access 'low', empty role list) for a target namespace/database sends an HTTP GET to /export. Because the export path only checks database-level View authorization and never re-evaluates per-table SELECT predicates or field-level SELECT permissions, the response returns raw INSERT statements containing other users' rows and fields marked PERMISSIONS FOR SELECT NONE that the /sql path would hide. A full working proof-of-concept demonstrating this /export-versus-/sql differential is published in the GHSA advisory, and exploitation is low-complexity and requires no user interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
SurrealDB 3.0.0 before 4.0.0 exposes restricted records to authenticated low-privilege database users through the HTTP GET /export endpoint, which serializes raw records without applying the table SELECT predicate or field-level SELECT restrictions enforced on the /sql path. An attacker with a valid database-scoped JWT (access level low, no Viewer role) can retrieve other users' rows and hidden fields when affected tables use row-level or field-level SELECT permissions; tables with FULL permissions expose nothing beyond what is already public. A public proof-of-concept reference demonstrating the /export versus /sql differential exists in the GitHub advisory, but active exploitation is not confirmed and no CISA KEV entry is provided.
RemediationAI
Vendor-released patch: 4.0.0. Upgrade to SurrealDB 4.0.0 or later; package metadata lists 4.0.0 as the fixed version, and the vendor advisory is at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-qh3v-rr48-x3cq . The fix must carry the session/authorization context through handle_inner, export_with_config, export, export_tables, and export_table_data and evaluate each decoded record against the session's table SELECT permission before serialization, then apply the field-level SELECT filter before emitting INSERT statements. If upgrading immediately is not possible, restrict GET /export to trusted database administrators at the reverse proxy or network layer and block it for low-privilege database tokens; this removes legitimate export functionality for ordinary users but closes the identified data path. There is no alternate vendor mitigation described beyond the authorization fix.
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 Rust-based multi-model database with an HTTP API; the affected route is GET /export. In surrealdb/server/src/ntw/export.rs the handler checks route capability, requires namespace/database, authorizes database View, then calls db.export_with_config(&session, ...). Datastore::export_with_config opens a read-only transaction and dispatches to surrealdb/core/src/kvs/export.rs, where export_table_data/export_regular_data scans raw key/value records, decodes each value, and emits INSERT statements. That serialization path does not evaluate the requesting session's table SELECT predicate and does not apply field-level SELECT projection, whereas the same session's /sql path checks table visibility during record resolution and filters fields. The result is a CWE-863 permission bypass / incorrect authorization issue (advisory also cites CWE-200 and CWE-862) at the HTTP export surface. The advisory's PoC pins revision 18971ffba781a796c0ad3897bb4b82432c241e4c (3.3.0-nightly) and demonstrates a database JWT with AC=low and RL=[] receiving secrets:hidden and a SELECT NONE field from /export while /sql omits them; CVE and package metadata describe the affected range as 3.0.0 before 4.0.0, fixed in 4.0.0.
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 /export endpoint (AV:N) with low complexity and a required low-privilege database token (PR:L); scope unchanged within the database, confidentiality-only impact so C:H, I:N, A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SurrealDB 3.0.0 before 4.0.0 contains a permission bypass vulnerability that allows authenticated low-privilege database users to read restricted records by calling the GET /export endpoint. Attackers can export raw records that skip table SELECT predicates and field-level SELECT permissions, exposing other users' rows and hidden fields.
Technical POC Analysis
Metadata conflict: the advisory (GHSA-qh3v-rr48-x3cq) records severity Moderate 6.5, CWE-200 / CWE-862, and "No known CVE".
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 3.0.0 through 3.0.x allows any low-privilege authenticated database user to export records that row-level and field-level SELECT permissions are supposed to protect, bypassing the access controls that apply to normal queries. This means data leadership believes is restricted - including other users' rows and hidden fields - may be retrievable by ordinary accounts. Security leadership should care because the exposure is silent (it looks like a legitimate export), affects multi-tenant or field-sensitive datasets, and there is no vendor patch yet.
No vendor-released patch identified at time of analysis. Interim options: block or tightly IP-restrict the HTTP GET /export endpoint via reverse proxy or firewall; deny export capability to low-privilege JWTs; rotate exposed database-scoped tokens; and review audit logs for anomalous export activity on tables with row-level or field-level SELECT restrictions.
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
SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embed
Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act
SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow
Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a
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
Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read
Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0
Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an
Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo
EUVD-2026-132246
GHSA-3wfp-cfg4-qr44
NVD
CVE.org
EPSS
Exploit-DB