Description
SurrealDB before 3.1.0 contains an authorization bypass vulnerability in the RELATE statement that allows authenticated users with CREATE permission to overwrite existing edge records without UPDATE permission. Attackers can issue a RELATE statement with a SET id clause pointing to an existing edge id, causing the storage layer to silently overwrite the target record instead of rejecting the operation.
Published: 2026-07-20
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions prior to 3.1.0 suffer an authorization bypass in the RELATE statement, permitting users who hold only CREATE permissions to overwrite edge records that require UPDATE rights. The exploit allows the attacker to silently replace the contents of an existing edge, silently removing or altering data integrity without the user’s awareness. This weakness is classified as CWE‑285 and can compromise the confidentiality and integrity of stored relationships.

Affected Systems

Vendor SurrealDB, product SurrealDB, affected releases are all versions before 3.1.0. Any instance running an unpatched release is vulnerable.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate risk. The EPSS score of < 1% shows that the probability of exploitation is very low. This vulnerability is not listed in CISA’s KEV catalog. An authenticated attacker with only CREATE permissions can issue a RELATE statement that includes a SET id clause pointing to an existing edge id; the storage engine will silently overwrite the target record without validating UPDATE rights, allowing unauthorized data modification.

Generated by OpenCVE AI on July 30, 2026 at 19:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.1.0 or later
  • Limit the use of CREATE permissions to trusted users only
  • Disable or restrict RELATE statements that include a SET id clause where it is not required

Generated by OpenCVE AI on July 30, 2026 at 19:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Mon, 20 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description SurrealDB before 3.1.0 contains an authorization bypass vulnerability in the RELATE statement that allows authenticated users with CREATE permission to overwrite existing edge records without UPDATE permission. Attackers can issue a RELATE statement with a SET id clause pointing to an existing edge id, causing the storage layer to silently overwrite the target record instead of rejecting the operation.
Title SurrealDB before 3.1.0 RELATE Statement Record Overwrite
Weaknesses CWE-285
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:45.214Z

Reserved: 2026-07-18T12:30:08.354Z

Link: CVE-2026-63752

cve-icon Vulnrichment

Updated: 2026-07-20T19:23:28.703Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:45:06Z

Weaknesses