Skip to main content

SurrealDB CVE-2026-63745

| EUVDEUVD-2026-45916 MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-07-20 disclosure@vulncheck.com GHSA-6fpj-mjq4-fp9r
5.3
CVSS 4.0 · Vendor: vulncheck
Share

Severity by source

Vendor (vulncheck) PRIMARY
5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
6.4 MEDIUM

Network-accessible with low complexity; PR:L because valid credentials required; S:C because cross-tenant data access breaches isolation boundary; no availability impact.

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
Jul 20, 2026 - 15:33 EUVD
Source Code Evidence Fetched
Jul 20, 2026 - 12:46 vuln.today
Analysis Generated
Jul 20, 2026 - 12:46 vuln.today

DescriptionCVE.org

SurrealDB versions before 3.1.0 contain an authorization bypass vulnerability where authenticated users can spoof composite record-id field values by writing to editable body fields. Attackers can bypass permission rules that gate access on id components like tenant isolation by setting same-named body fields to spoofed values that permission checks incorrectly read instead of the immutable id key.

AnalysisAI

Authorization bypass in SurrealDB before 3.1.0 allows authenticated users to circumvent tenant-isolation and object-keyed permission rules by spoofing composite record-id field values through writable body fields. Attackers who can write to any record can set a same-named body field to an arbitrary value; because the permission evaluator incorrectly reads from the editable body rather than the immutable id key, PERMISSIONS FOR clauses gating access on id.<field> (the common pattern for tenant isolation) are silently defeated. No public exploit has been identified at time of analysis, and the vulnerability requires valid credentials, but the impact includes cross-tenant data exposure and silent UNIQUE constraint corruption. Fix is available in 3.1.0.

Technical ContextAI

SurrealDB is a multi-model database written in Rust that supports a record-oriented data model where each document carries a strongly-typed record id, which may be a composite object key (e.g., user:[{tenant: 'acme', uid: 42}]). Permission policies (DEFINE TABLE ... PERMISSIONS FOR select WHERE id.tenant = $auth.id.tenant) rely on reading named components of this id to enforce row-level isolation. The defect, classified as CWE-639 (Authorization Bypass Through User-Controlled Key), arises in the value-path resolver: when evaluating a path like id.tenant, the resolver entered select_document and read from the record's mutable body fields rather than from the immutable RecordIdKey::Object components. Because body fields are user-writable but the id key is fixed at record creation, an attacker could set a body field named tenant to any value and have all id.tenant permission expressions evaluate against that spoofed value. The patch special-cases Part::Field and Part::Value against RecordIdKey::Object to always read directly from the id key. The vulnerability is scoped to object-keyed composite ids; array-indexed access (id[0]) is unaffected.

RemediationAI

Upgrade SurrealDB to version 3.1.0 or later; this is the vendor-confirmed fixed release per GHSA-6vg3-hgrw-p5gf and the associated commit at https://github.com/surrealdb/surrealdb/commit/1fcb19040bfffba92b3f69edb9b707d469e0027b. For deployments unable to patch immediately, the vendor recommends two compensating controls with meaningful trade-offs: first, rewrite permission expressions to gate on the full record id (WHERE id = $auth.id) rather than a named component (WHERE id.tenant = $auth.id.tenant) - this closes the bypass but requires schema and query review to ensure the full-id comparison still correctly expresses the intended policy; second, avoid UNIQUE indexes defined on id.<field> until patched, replacing them with DEFINE INDEX ... ON FIELDS id UNIQUE (full-id uniqueness) - this prevents constraint corruption but may require index redesign. Neither workaround addresses the root cause; upgrading to 3.1.0 is the definitive fix.

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-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-2025-71397 HIGH
7.1 Jul 18

Denial of service in SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 lets an authenticated user with

CVE-2026-63746 HIGH
7.1 Jul 20

Information disclosure in SurrealDB before 3.1.0 allows authenticated record or scope users to bypass table-level SELECT

CVE-2025-71391 HIGH
7.1 Jul 18

Denial of service in SurrealDB before 2.2.2 allows any authenticated user to crash the database by submitting a crafted

Share

CVE-2026-63745 vulnerability details – vuln.today

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