Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with select permission
-
DeliveryRegister LIVE query with erroring WHERE clause
-
ExploitWHERE evaluation throws on every write
-
ExecutionErrors propagate into write transactions
-
PersistAll CREATE/UPDATE/DELETE roll back for all users
-
ImpactTable writes denied until query killed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Unusual condition handling
|
| Exploitation Conditions | Exploitation requires an authenticated SurrealDB session with 'select' permission on the target table (PR:L) and the ability to register a LIVE query - no other table permission, no user interaction, and no non-default configuration are needed, since LIVE queries are a core feature. The specific trigger is a LIVE query WHERE clause that deterministically raises an evaluation error, such as invoking any typed SurrealQL function with a wrong-typed argument (e.g. string::trim on a non-string). Limiting factors: the attacker must already hold a valid account with at least select rights on the table, the impact is confined to the specific watched table, and service is automatically restored the moment the LIVE query is killed or the registering session terminates. This meaningfully constrains real-world risk to environments that grant table access to untrusted or semi-trusted users. |
| Impact | The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H) correctly frames this as a network-reachable, low-complexity, low-privilege attack with high availability impact and no confidentiality or integrity impact - a pure DoS. The notable amplification is cross-privilege scope: a user with the minimum possible table permission (select only) can deny writes to root, so the effective blast radius exceeds the attacker's own authorization. No KEV listing and no EPSS score are provided; no public exploit is identified, so treat this as a credible but not-yet-observed threat. Real-world priority is moderate: it requires an authenticated attacker who already has a legitimate account with select rights, which limits exposure to multi-tenant or untrusted-user deployments rather than internet-facing default installs. Missing signals (EPSS, KEV, POC status) should be explicitly noted rather than assumed benign. |
| Exploit ScenarioDerived | In a multi-tenant SurrealDB deployment, a low-privilege user with only select permission on the 'orders' table opens a session and registers LIVE SELECT * FROM orders WHERE string::trim(deny), whose WHERE clause throws a type error on every evaluation. From that moment, all CREATE/UPDATE/DELETE operations on 'orders' - including those performed by the root user or backend services - fail and roll back until the malicious LIVE query is killed or the attacker's session ends, effectively freezing writes to the table. No public exploit code is identified, but the single-statement technique is trivial and documented in the vendor advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 20, 2026
Denial of service in SurrealDB before 3.1.0 allows an authenticated user holding only 'select' permission on a table to indefinitely block all CREATE, UPDATE, and DELETE operations on that table for every other user - including root. By registering a LIVE query whose WHERE clause deterministically throws an evaluation error (e.g. calling a typed SurrealQL function with a wrong-typed argument), the resulting error propagates into the write path and rolls back the triggering modification. No public exploit identified at time of analysis, but the technique is fully documented in the vendor's GHSA advisory.
RemediationAI
Vendor-released patch: upgrade to SurrealDB 3.1.0 or later, which decouples LIVE query evaluation errors from the source transaction (an erroring WHERE clause now yields an Action::Error notification to the subscriber and returns Ok(()) so the triggering write proceeds) and defers that error notification until after the LIVE subscription's PERMISSIONS clause is evaluated to close an information-disclosure side channel. The fix corresponds to commits af835eb199ad2327a04c42101d11aff21fce7e47 and b29e03f0714d1c4ec091fc6f27f1edbe243b8aec. For users who cannot upgrade, the vendor-recommended workaround is to remove the 'select' permission on tables that must remain writeable, which prevents untrusted users from registering LIVE queries against them - at the cost of denying those users legitimate read access - or to gate LIVE query registration at the application layer, which requires application-side enforcement and does not protect direct database sessions. Reference the GHSA advisory at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-4v76-cw68-4vc9.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in cargo
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 (document/graph/relational) database written in Rust that supports LIVE queries - persistent subscriptions that notify clients when records on a watched table change. When a write occurs, the engine evaluates each registered LIVE query's WHERE clause (lq_check) to decide whether to emit a notification. The root cause is CWE-754 (Improper Check for Unusual or Exceptional Conditions): an error returned by the LIVE query's WHERE evaluation was not isolated from the source transaction, so the exception thrown inside the notification path propagated back to and aborted the user's write. An attacker weaponizes this by supplying a WHERE clause guaranteed to throw at evaluation time, such as passing a wrong-typed value into a strongly-typed function like string::trim(deny). Per the Rust crate metadata (rust/surrealdb), all versions < 3.1.0 are affected.
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:N/VA:H/SC:N/SI:N/SA:N
Network-reachable, low-complexity attack needing only low-privilege select access (PR:L); pure availability DoS (A:H, C/I:N), and S:C because a low-privilege user impacts writes for root and all other users.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
SurrealDB versions before 3.1.0 contain a denial of service vulnerability where malicious LIVE queries with WHERE clauses that evaluate to errors cause all CREATE, UPDATE, and DELETE operations on the watched table to fail. An authenticated user with only select permission can prevent write operations on a table for any user, including root, by registering a LIVE query that triggers evaluation errors until the query is killed or the session ends.
Executive ViewAI
SurrealDB versions before 3.1.0 contain a denial-of-service vulnerability allowing authenticated users with select-only permissions to block all write operations on database tables for other users. No public exploit identified at time of analysis, though the attack technique is documented in vendor advisories. This threatens database operational continuity and could render tables inaccessible to legitimate applications.
Until vendor patch is released: (1) Restrict database users with select-only permissions to authenticated internal personnel only; (2) Implement role-based access control limiting LIVE query permissions; (3) Monitor query logs for repeated evaluation errors and unusual LIVE query registrations; (4) Maintain up-to-date backups and table-level write-access recovery procedures; (5) Consider network segmentation to limit SurrealDB access to trusted application servers only.
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
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica
SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embed
Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act
Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo
SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow
Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an
Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read
SurrealDB releases before 4.0.0 fail to check query capability inside the embedded JavaScript bridge, so a low-privilege
SurrealDB 1.0.0 through 3.x lets an authenticated user with only the database-level VIEWER role read, modify, and delete
Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a
Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web
EUVD-2026-45925
GHSA-grg2-m369-7vhm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB