Skip to main content

SurrealDB CVE-2026-109340

| EUVDEUVD-2026-97642 MEDIUM
Missing Authorization (CWE-862)
2026-10-12 VulnCheck GHSA-776g-xgm5-fjc8
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege account
  2. Delivery
    Identify referenced table with delete rights
  3. Exploit
    Delete parent record triggering ON DELETE CASCADE
  4. Execution
    Cascade bypasses edge PERMISSIONS check
  5. Impact
    Protected graph edges erased

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
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 (1) an authenticated SurrealDB account (PR:L) that (2) holds delete permission on a table referenced by a REFERENCE relationship, and (3) a schema where that reference uses ON DELETE CASCADE and the target edge table relies on a PERMISSIONS FOR delete clause as its access boundary. The flaw affects versions 3.1.0 up to but not including 3.3.0. Limiting factors: the attacker must already be authenticated and already authorized to delete the referenced parent record, so it is not remotely reachable by anonymous users; it is only meaningful where per-table PERMISSIONS are used as a trust boundary (e.g. multi-tenant setups), and impact is limited to deletion of edges (integrity/availability), with no confidentiality exposure.

Impact

This is a moderate, authenticated-only authorization-bypass (CWE-862) rated CVSS 5.3 via the vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with only low integrity and availability impact (VI:L/VA:L) and no confidentiality impact (VC:N) and no scope change to other systems. The signals are internally consistent: network-reachable but requiring existing privileges (PR:L), low complexity, no user interaction. There is no CISA KEV listing and no public exploit identified, and no EPSS score was provided in the input, so there is no evidence of active or widespread exploitation - this is a confined privilege/permission-enforcement flaw rather than a mass-exploitation threat. The practical risk is bounded to multi-tenant or shared SurrealDB deployments where an attacker already holds a legitimate account with delete permission on a referenced table; in single-trust-boundary deployments the impact is minimal. Net assessment: a legitimate correctness/authorization bug worth patching in environments that rely on per-table PERMISSIONS as a security boundary, but not an urgent fire-drill given authenticated-only access, no confidentiality impact, and no exploitation evidence.

Exploit ScenarioDerived

In a multi-tenant SurrealDB instance, a low-privileged authenticated user who has been granted delete permission on a referenced (parent) table deletes a record that participates in a REFERENCE ON DELETE CASCADE relationship. The cascade cleanup erases graph edges in a separate edge table even though that edge table's PERMISSIONS FOR delete clause should have blocked the user, letting them tamper with data they were never authorized to remove. No public proof-of-concept was identified at the time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 12, 2026

SurrealDB versions 3.1.0 before 3.3.0 contain an authorization bypass (CWE-862) that allows an authenticated user with delete permission on a referenced table to delete protected graph edges. When a record with a REFERENCE ON DELETE CASCADE relationship is deleted, the cascade cleanup disables permission checks for the edge table, erasing edges despite the edge table's PERMISSIONS FOR delete clause. The vulnerability requires authentication and pre-existing delete authorization on the referenced parent record, so it is not anonymously reachable; exploitation enables low integrity and availability impact only, with no confidentiality exposure. No public exploit code has been identified at time of analysis.

RemediationAI

Upgrade to SurrealDB 3.3.0 or later. Vendor-released patch: 3.3.0. See advisory at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-4w65-7h3j-p29h. If immediate upgrade is not possible, avoid using REFERENCE ON DELETE CASCADE on tables that also enforce delete permissions via PERMISSIONS FOR delete clauses, or restrict delete permissions on referenced tables to trusted roles only. Note that disabling cascades may leave orphaned edges, requiring manual cleanup.

Affected VersionsENISA

surrealdb 3.1.0 <3.3.0

Affected Packages

euvd surrealdb fix: 3.3.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 multi-model database that supports graph relationships through edge tables and table-level permissions. The vulnerability resides in the interaction between the REFERENCE ON DELETE CASCADE feature and the PERMISSIONS FOR delete clause applied to edge tables. When a record in a referenced table is deleted, the database automatically cascades the deletion to related edges. Under certain conditions, this cascade operation disables permission checks for the edge cleanup, thereby bypassing the PERMISSIONS FOR delete clause defined on the edge table. This is an instance of CWE-862 (Missing Authorization), where the authorization logic for edge deletion is not applied during cascading deletes. Affected versions are 3.1.0 up to but not including 3.3.0, as identified by CPE cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*.

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 5.3 MEDIUM
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
vuln.today AI 5.4 MEDIUM

Network-reachable but requires an authenticated account with delete rights (PR:L); cascade erases edges causing limited integrity/availability loss (I:L/A:L) and no data disclosure (C:N).

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

Lifecycle Timeline

1
Patch available
Oct 12, 2026 - 18:03 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
newer niche multi-model database, limited real-world production footprint
Data Quality
5 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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-109343 HIGH
8.6 Oct 12

SurrealDB versions before 3.3.0 fail to validate a caller's authorization level when the SurrealQL USE statement switche

CVE-2026-109334 HIGH
8.6 Oct 12

Cross-tenant data access in SurrealDB before 3.3.0 allows an authenticated namespace- or database-level SYSTEM user to b

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-2026-109338 HIGH
7.1 Oct 12

Denial of service in SurrealDB versions before 3.3.0 lets a query-capable authenticated user with embedded JavaScript sc

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