Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliveryIdentify referenced table with delete rights
-
ExploitDelete parent record triggering ON DELETE CASCADE
-
ExecutionCascade bypasses edge PERMISSIONS check
-
ImpactProtected 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica
Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi
Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the
SurrealDB versions before 3.3.0 fail to validate a caller's authorization level when the SurrealQL USE statement switche
Cross-tenant data access in SurrealDB before 3.3.0 allows an authenticated namespace- or database-level SYSTEM user to b
Cross-tenant authorization bypass in SurrealDB before 3.2.0 lets any authenticated user reach custom API endpoints belon
Arbitrary file read in SurrealDB before 3.1.5 lets an authenticated database user holding the EDITOR or OWNER role discl
Confused-deputy privilege escalation in SurrealDB before 2.5.0 and before 3.0.0-beta.3 lets a low-privileged user (e.g.
Denial of service in SurrealDB before 3.1.5 lets an authenticated user with query-execution privileges crash the entire
Denial of service in SurrealDB versions before 3.3.0 lets a query-capable authenticated user with embedded JavaScript sc
EUVD-2026-97642
GHSA-776g-xgm5-fjc8
NVD
CVE.org
EPSS
Exploit-DB