CVE-2024-58370 Details
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.
A denial-of-service vulnerability has been identified in SurrealDB versions prior to 1.1.0. The issue arises because the SurrealQL parser does not properly enforce recursion depth limits when processing nested statements and idioms, such as 'IF', 'RELATE', and attribute access. This flaw allows authorized attackers to submit queries with excessive nesting, leading to a stack overflow that crashes the server.
Users can update to SurrealDB version 1.1.0 or later to address this vulnerability. Those unable to update should consider restricting untrusted users from executing arbitrary SurrealQL queries and ensure that the SurrealDB process can automatically restart after a crash.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-6r8p-hpg7-825g | [email protected] | Vendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-uncontrolled-recursion-denial-of-service | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| surrealdb surrealdb | < 1.1.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 27, 2026 | CVE Translated | [email protected] |
| Aug 19, 2026 | Initial Analysis | [email protected] |
| Jul 22, 2026 | CVE Modified | CISA-ADP |
| Jul 18, 2026 | New CVE Received | [email protected] |