Vulnerability details

CVE-2024-58359

surrealdb surrealdb

SurrealDB before 2.1.0 Denial of Service via rand() Sorting

CVSS 4.0
7.1High

Official 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.

CVSS scores

ScoreVersionSourceVector
7.1High 4.0 CVEProject cvelistV5 (CNA) (VulnCheck) CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
6.5Medium 3.1 CVEProject cvelistV5 (CNA) (VulnCheck) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersionsSource
surrealdb surrealdb v < 2.1.0 CVEProject cvelistV5 (CNA)
surrealdb surrealdb v < 2.1.0 CVEProject cvelistV5 (CNA)

References and advisories

2
Kolun on Telegram @kolunsec Exploited CVEs, key news and a daily digest Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.

Details

Published
2026-07-18
Last updated
2026-07-28
State
Published
Assigner (CNA)
VulnCheck

Exploit prediction (EPSS)

0.45%
Probability of exploitation in 30 days
39.3%
Percentile (among all CVEs)

SSVC assessment (CISA)

Automatable
No
Exploitation
None
Technical impact
Partial

Weaknesses (CWE)

  • CWE-248
    Uncaught Exception