CVE-2026-109340

SurrealDB 3.1.0 before 3.3.0 Authorization Bypass via REFERENCE ON DELETE CASCADE

Published Oct 12, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
SurrealDB from 3.1.0 before 3.3.0 contains an authorization bypass vulnerability that allows authenticated users to delete protected graph edges by triggering a REFERENCE ON DELETE CASCADE. Attackers with delete permission on a referenced table can delete a record whose cascade disables permission checks for edge cleanup, erasing edges despite the edge table's PERMISSIONS FOR delete clause.

Analysis

AI-generated

Technical impact

SurrealDB releases from 3.1.0 up to before 3.3.0 contain an authorization bypass that allows an authenticated user who has delete permission on a referenced table to delete protected graph edges. Triggering a REFERENCE ON DELETE CASCADE removes edges even when the edge table’s PERMISSIONS FOR delete clause should deny the action. The flaw is a missing authorization check (CWE‑862) that can alter data integrity and potentially expose vulnerabilities in downstream applications depending on the graph structure.

Affected Systems

The vulnerable versions are all SurrealDB products released before and including 3.2.x. Vendors and versions affected are SurrealDB, any release older than 3.3.0. No other subcomponents are noted as affected in the advisory.

Risk and Exploitability

The CVSS score of 5.3 rates the issue as moderate. Exploitation requires the attacker to be an authenticated user entitled to delete records in a referenced table; network exposure is not a prerequisite, so the attack vector is internal or application‑level. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting a lower overall risk compared to high‑severity alerts. Nonetheless, the bypass permits unauthorized data deletion, which can impact confidentiality, integrity, and availability of the graph data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.3.0 or later to eliminate the bug
  • Restrict delete permissions on tables that can trigger REFERENCE ON DELETE CASCADE, applying least‑privilege role assignments
  • Configure database auditing and monitor logs for unauthorized delete operations

Generated by OpenCVE AI on October 12, 2026 at 18:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description SurrealDB from 3.1.0 before 3.3.0 contains an authorization bypass vulnerability that allows authenticated users to delete protected graph edges by triggering a REFERENCE ON DELETE CASCADE. Attackers with delete permission on a referenced table can delete a record whose cascade disables permission checks for edge cleanup, erasing edges despite the edge table's PERMISSIONS FOR delete clause.
Title SurrealDB 3.1.0 before 3.3.0 Authorization Bypass via REFERENCE ON DELETE CASCADE
First Time appeared Surrealdb
Surrealdb surrealdb
Weaknesses CWE-862
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Vendors & Products Surrealdb
Surrealdb surrealdb
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 13, 2026, 5:52 PM
Reserved
Oct 12, 2026, 2:19 PM
Status
Deferred
Published
Oct 12, 2026, 5:17 PM
Modified
Oct 13, 2026, 6:17 PM