# CVE-2024-58370: SurrealDB before 1.1.0 Uncontrolled Recursion Denial of Service

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2024-01-18T15:55:18.000Z
- Modified: 2026-10-27T18:10:00.130Z
- Also known as: GHSA-6r8p-hpg7-825g
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 1.1.0 (not affected: 1.1.0)
- surrealdb (crates.io): before 1.1.0

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-6r8p-hpg7-825g> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/surrealdb-before-uncontrolled-recursion-denial-of-service> (third-party-advisory)
- <https://github.com/surrealdb/surrealdb/pull/3232> (web)
- <https://github.com/surrealdb/surrealdb/commit/f838da248e3854e4250e5187a3a67507cb7efaaa> (web)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62410> (web)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62652> (web)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63797> (web)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64445> (web)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64731> (web)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65277> (web)
- <https://github.com/surrealdb/surrealdb> (package)

## Sources

- CVE List: [CVE-2024-58370](https://www.cve.org/CVERecord?id=CVE-2024-58370), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-6r8p-hpg7-825g](https://github.com/advisories/GHSA-6r8p-hpg7-825g), CC-BY-4.0, modified 2026-07-19
- NVD: [CVE-2024-58370](https://nvd.nist.gov/vuln/detail/CVE-2024-58370), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2024-58370 · Whole record: https://cve.day/CVE-2024-58370.json · Rebuilt by cve.day 2026-11-25T22:58:53.052Z
