CVE-2024-58359

published 18 Jul 2026 · updated 28 Jul 2026

SurrealDB before 2.1.0 Denial of Service via rand() Sorting

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.1.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
surrealdb<2.1.02.1.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-58359 severity on Zeptric[![CVE-2024-58359](https://zeptric.io/badge/cve/CVE-2024-58359.svg)](https://zeptric.io/cve/CVE-2024-58359)