CVE-2024-58370

SurrealDB before 1.1.0 Uncontrolled Recursion Denial of Service

Published Jul 18, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:47 AM
Reserved
Jul 18, 2026, 12:40 PM
Status
Analyzed
Published
Jul 18, 2026, 2:17 PM
Modified
Oct 27, 2026, 6:10 PM