Skip to main content

SurrealDB CVE-2026-134307

| EUVDEUVD-2026-132246 HIGH
Incorrect Authorization (CWE-863)
2026-11-21 VulnCheck GHSA-3wfp-cfg4-qr44
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege database JWT (AC=low, RL=[])
  2. Exploit
    Send GET /export for namespace/database
  3. Execution
    Export skips table SELECT and field permissions
  4. Impact
    Exfiltrate 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.

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

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

Alert me

AnalysisAIv1 – 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

surrealdb 3.0.0 <4.0.0

Affected Packages

euvd surrealdb fix: 4.0.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 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

Vendor (VulnCheck) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/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
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:35 cve.org
HIGH 7.1

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
emerging multi-model database, modest production deployment footprint
Data Quality
4 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.4%
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

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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-134292 CRITICAL
9.3 Nov 21

SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embed

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-134293 HIGH
8.8 Nov 21

SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow

CVE-2026-121417 HIGH
8.8 Nov 03

Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a

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-134291 HIGH
8.7 Nov 21

Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read

CVE-2026-134294 HIGH
8.7 Nov 21

Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0

CVE-2026-134295 HIGH
8.7 Nov 21

Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an

CVE-2026-134299 HIGH
8.7 Nov 21

Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo

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