Uncontrolled Recursion Affecting surrealdb package, versions >=3.0.0 <3.1.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SURREALDB-17661104
  • published28 Jun 2026
  • disclosed19 Jun 2026
  • creditUnknown

Introduced: 19 Jun 2026

New CVE NOT AVAILABLE CWE-674  (opens in a new tab)

How to fix?

Upgrade surrealdb to version 3.1.5 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion in the query processing process. An attacker can cause the server to crash and deny service to all users by submitting a query containing a very long chain of operators, which leads to stack exhaustion and process termination.

Workaround

This vulnerability can be mitigated by restricting untrusted users from executing arbitrary queries using the --deny-arbitrary-query capability flag, limiting untrusted access to the WebSocket /rpc endpoint, or running the server under a process manager that automatically restarts it after a crash.

References

CVSS Base Scores

version 4.0
version 3.1