Description
SurrealDB versions before 1.1.0 fail to enforce recursion depth limits when parsing nested SurrealQL statements including IF, RELATE, and attribute access idioms. Authorized attackers can submit queries with excessive nesting depth to cause stack overflow and crash the server.
Published: 2026-07-18
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions before 1.1.0 allow a query deepness of SurrealQL statements to grow without limit. An attacker who has authorized access can issue a query with excessive nesting of IF, RELATE, or attribute access expressions. The engine will recurse internally until the stack overflows, causing the database server process to crash and the service to become unavailable. This flaw is a classic stack overflow violation of resource limits (CWE‑674). The flaw does not disclose data or enable code execution, but it does break the availability of the database for all users.

Affected Systems

The product affected is SurrealDB, provided by surrealdb:surrealdb. All releases before 1.1.0 are vulnerable; versions 1.1.0 and later have the recursion depth enforcement that mitigates this issue.

Risk and Exploitability

The CVSS score of 7.1 indicates a high impact on availability, while the EPSS score of less than 1% suggests that exploitation remains rare but possible. The vulnerability is not yet listed in the CISA KEV catalog, indicating that no widespread exploitation has been observed. Attackers would need authenticated access to the database to submit the malicious query, so the risk is confined to environments where the attacker can authenticate or where the database is exposed to untrusted clients. Because an overflow leads only to a crash, the condition for exploitation is simple once authorization is achieved, and the attack can be replayed until mitigation is applied.

Generated by OpenCVE AI on July 30, 2026 at 23:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 1.1.0 or later, which enforces recursion depth limits during SurrealQL parsing.
  • If upgrading immediately is not feasible, implement a query complexity monitor or firewall rule that rejects requests with unusually deep nested statements before reaching the database.
  • Configure the database server to run with a minimized stack size or process wrapper that restarts the service automatically on crash to reduce impact time.

Generated by OpenCVE AI on July 30, 2026 at 23:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Wed, 22 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 18 Jul 2026 13:45:00 +0000

Type Values Removed Values Added
Description SurrealDB versions before 1.1.0 fail to enforce recursion depth limits when parsing nested SurrealQL statements including IF, RELATE, and attribute access idioms. Authorized attackers can submit queries with excessive nesting depth to cause stack overflow and crash the server.
Title SurrealDB before 1.1.0 Uncontrolled Recursion Denial of Service
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 7.1, 'vector': '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'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:47:55.449Z

Reserved: 2026-07-18T12:40:52.917Z

Link: CVE-2024-58370

cve-icon Vulnrichment

Updated: 2026-07-22T18:55:29.574Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T23:15:06Z

Weaknesses