CVE-2024-58359Published Jul 18, 2026 · Jul 18Updated Oct 29
SurrealDB before 2.1.0 Denial of Service via rand() Sorting
surrealdb
High7.1Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| surrealdb crates.io |
|
|
| surrealdb-core crates.io |
|
|
Original description
SurrealDB versions before 2.1.0 contain a denial of service vulnerability in the sorting mechanism when using ORDER BY rand() clause. Authorized clients can execute queries with ORDER BY rand() to trigger a panic in the sorting function, crashing the server.