Skip to main content

SurrealDB CVE-2026-63759

| EUVDEUVD-2026-45930 HIGH
Uncontrolled Recursion (CWE-674)
2026-07-20 disclosure@vulncheck.com GHSA-56pq-53x9-mxc4
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 query privileges
  2. Delivery
    Open WebSocket /rpc connection
  3. Exploit
    Send query with deeply nested type annotations
  4. Execution
    Trigger unbounded recursion in kind parser
  5. Persist
    Exhaust server memory
  6. Impact
    Crash SurrealDB process (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires an authenticated account with query-execution privileges (CVSS PR:L) and network reachability to a query endpoint - realistically the WebSocket /rpc endpoint, which imposes no body-size cap. The concrete trigger is a query carrying deeply nested type annotations (nested array<...>/option<...> kinds) in a cast or DEFINE FIELD statement that drives the type/kind parser past the intended object_recursion_limit. Limiting factors: exploitation is prevented on servers running 3.1.0+, blocked for user classes covered by --deny-arbitrary-query, and effectively infeasible through the HTTP /sql endpoint because its 1 MiB body limit caps achievable nesting depth below the OOM threshold. No user interaction is needed, but unauthenticated access alone is insufficient.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VA:H, VC:N/VI:N) is internally consistent with the description: network-reachable, low complexity, requires low privileges (an authenticated query user), and impacts availability only - no confidentiality or integrity loss. The 7.1 score reflects an easy, reliable single-message crash rather than data compromise. No EPSS score, KEV listing, POC, or SSVC decision data was supplied, so exploitation-probability signals are absent; the practical risk is elevated by the fact that this is an incomplete fix of an earlier recursion bug, meaning the pattern is known and the trigger is public in concept via the advisory. This is a genuine availability priority for internet-exposed or multi-tenant SurrealDB deployments where lower-trust users hold query privileges, but lower risk where only trusted operators can issue queries. Note the PR:L requirement limits this from being an unauthenticated internet-wide threat.

Exploit ScenarioDerived

An attacker who holds a valid low-privilege account with query-execution rights connects to the SurrealDB WebSocket /rpc endpoint and sends one query containing a type annotation nested hundreds or thousands of levels deep, such as a cast to array<option<array<option<...>>>>. The kind parser recurses without bound, memory is exhausted, and the server process crashes, taking down the database for all tenants. No public POC is identified at this time, but the trigger is straightforward given the described construct.

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 lets an authenticated user with query-execution privileges crash the server with a single WebSocket message. The type/kind parser fails to enforce the configured recursion depth limit when parsing deeply nested type annotations (e.g. array<option<array<option<...>>>>), driving uncontrolled recursion that exhausts server memory and terminates the process. No public exploit identified at time of analysis and not listed in CISA KEV, but the flaw is trivially triggerable and is an incomplete fix of a previously patched bug class (GHSA-6r8p-hpg7-825g).

RemediationAI

Upgrade to SurrealDB 3.1.0 or later, which wraps parse_concrete_kind and the OPTION<...> arm of parse_inner_kind with the enter_object_recursion! guard to bound recursion at the configured object_recursion_limit (default 100); the fix is in commit 61d509b766afdf67cc26d8203fd7dc583c8d77aa (Vendor-released patch: 3.1.0). If immediate patching is not possible, restrict untrusted query execution using the --deny-arbitrary-query capability flag for the guest, record, and system user classes, accepting that this blocks legitimate ad-hoc queries for those classes. Alternatively, disable untrusted access to the WebSocket /rpc endpoint entirely, or route untrusted traffic only through the HTTP /sql endpoint, whose 1 MiB request body limit constrains nesting depth below the level needed to trigger OOM - at the cost of losing WebSocket RPC functionality for those users. See the advisory at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q8qp-67f9-wr3f.

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 Rust-based multi-model database that accepts SurrealQL queries over a WebSocket /rpc endpoint and an HTTP /sql endpoint. The root cause is CWE-674 (uncontrolled recursion): the type/kind parser recurses through the cycle parse_concrete_kind → parse_inner_kind → parse_inner_single_kind → parse_concrete_kind without applying the object_recursion_limit (default 100) that the expression parser already enforced. Because nested type annotations such as array<option<array<...>>> map directly onto this recursive descent, each nesting level consumes stack/heap until memory is exhausted. The affected component is the rust/surrealdb crate at versions below 3.1.0; CPE data was not provided, so affected identification relies on the vendor GHSA advisory and package range.

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 6.5 MEDIUM

Network-reachable query endpoint (AV:N/AC:L), requires an authenticated query user (PR:L), no user interaction; impact is availability-only crash (A:H) with no confidentiality or integrity loss.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/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 before 3.1.0 fails to enforce recursion depth limits in the type/kind parser when processing nested type annotations. Authenticated attackers can send queries with deeply nested type annotations to exhaust server memory and crash the process.

Executive ViewAI

Why It Matters

A denial-of-service vulnerability in SurrealDB versions before 3.1.0 allows authenticated database users to crash the server with a single message, disrupting any application or service dependent on the database. No public exploit has been identified at this time, but the flaw is trivially triggerable by any user with query-execution rights, creating material operational risk. With no vendor patch currently available, organizations using SurrealDB should immediately audit and restrict query access to essential accounts.

Business Impact: High
Compensating Controls

Restrict query-execution privileges to essential, trusted service accounts only; enforce authenticated session limits and per-connection memory constraints; deploy continuous monitoring for abnormal memory consumption patterns; implement hard containment boundaries using process-level memory limits and containerization (cgroups, Docker); maintain documented failover and rapid recovery procedures with defined RTO/RPO targets; isolate SurrealDB infrastructure on dedicated hardware or network segments to limit blast radius. No vendor-released patch identified at time of analysis.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
emerging multi-model database, limited production/enterprise 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 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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

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