Skip to main content

SurrealDB CVE-2026-63754

| EUVDEUVD-2026-45925 HIGH
Improper Check for Unusual or Exceptional Conditions (CWE-754)
2026-07-20 disclosure@vulncheck.com GHSA-grg2-m369-7vhm
7.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with select permission
  2. Delivery
    Register LIVE query with erroring WHERE clause
  3. Exploit
    WHERE evaluation throws on every write
  4. Execution
    Errors propagate into write transactions
  5. Persist
    All CREATE/UPDATE/DELETE roll back for all users
  6. Impact
    Table 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – 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

surrealdb 0 <3.1.0

Affected Packages

cargo surrealdb fix: 3.1.0

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

Vendor (vulncheck) PRIMARY 7.1 HIGH
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
vuln.today AI 7.7 HIGH

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.

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

Lifecycle Timeline

2
Patch available
Jul 20, 2026 - 15:33 EUVD
CVE Published
Jul 20, 2026 - 12:19 cve.org
HIGH 7.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Medium
growing multi-model database, notable adoption but not ubiquitous in production
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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-134292 CRITICAL
9.3 Nov 21

SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embed

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-134299 HIGH
8.7 Nov 21

Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo

CVE-2026-134293 HIGH
8.8 Nov 21

SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow

CVE-2026-134295 HIGH
8.7 Nov 21

Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an

CVE-2026-134291 HIGH
8.7 Nov 21

Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read

CVE-2026-137490 HIGH
8.7 Nov 26

SurrealDB releases before 4.0.0 fail to check query capability inside the embedded JavaScript bridge, so a low-privilege

CVE-2026-134309 HIGH
8.7 Nov 21

SurrealDB 1.0.0 through 3.x lets an authenticated user with only the database-level VIEWER role read, modify, and delete

CVE-2026-121417 HIGH
8.8 Nov 03

Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a

CVE-2026-134294 HIGH
8.7 Nov 21

Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0

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

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