CVE-2024-58359

MEDIUM

SurrealDB before 2.1.0 Denial of Service via rand() Sorting

Title source: cna
STIX 2.1

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.

References (2)

Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-m52v-24p8-654f)
https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m52v-24p8-654f
Third Party Advisory third-party-advisory
VulnCheck Advisory: SurrealDB before 2.1.0 Denial of Service via rand() Sorting
https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-sorting

Scores

CVSS v3 6.5
EPSS 0.0031
EPSS Percentile 23.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-248
Status published
Products (2)
surrealdb/surrealdb < 2.1.0
surrealdb/surrealdb 2.1.0
Published Jul 18, 2026
Tracked Since Jul 18, 2026