Vulnerability DatabaseGHSA-6r8p-hpg7-825g

GHSA-6r8p-hpg7-825g
Rust vulnerability analysis and mitigation

Overview

GHSA-6r8p-hpg7-825g is a moderate severity vulnerability affecting SurrealDB versions prior to 1.1.0, discovered and disclosed in January 2024. The vulnerability involves uncontrolled recursion in SurrealQL parsing where the parser attempts to recursively parse nested statements or idioms without properly checking the depth limit established by the SURREAL_MAX_COMPUTATION_DEPTH environment variable (GitHub Advisory).

Technical details

The vulnerability is characterized by the SurrealQL parser's failure to properly enforce recursion depth limits when processing nested statements including IF and RELATE statements, nested basic idioms, and nested attribute access. This oversight can result in stack overflow conditions when the nesting depth exceeds certain levels. The vulnerability has been assigned a CVSS score of 6.5 (Moderate) with a vector string of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating network vector attack capability with low complexity and required privileges (GitHub Advisory).

Impact

The primary impact of this vulnerability is the potential for denial of service attacks. An authenticated attacker with the ability to run queries on a SurrealDB server can craft queries with deeply nested statements that exceed the stack limits, causing the server to crash (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in SurrealDB version 1.1.0 and later releases. For users unable to update immediately, recommended workarounds include limiting the ability of untrusted users to run arbitrary SurrealQL queries and ensuring the SurrealDB process is configured to automatically restart after crashes to minimize denial of service impact (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22698HIGH8.7
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22700HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22699HIGH7.5
  • RustRust
  • sm2
NoNoJan 10, 2026
CVE-2026-22705MEDIUM6.4
  • RustRust
  • ml-dsa
NoYesJan 10, 2026
CVE-2025-15504MEDIUM4.8
  • PythonPython
  • lief
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management