{"id":"CVE-2024-58359","published":"2026-07-18T13:10:02Z","modified":"2026-07-28T01:47:48Z","title":"SurrealDB before 2.1.0 Denial of Service via rand() Sorting","vendor":"surrealdb","product":"surrealdb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0045,"percentile":0.40017,"provenance":"source"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m52v-24p8-654f","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-sorting","tags":["third-party-advisory"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":8.0},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"surrealdb","affectedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["< 2.1.0"]},{"vendor":"surrealdb","product":"surrealdb","versions":["< 2.1.0"]}],"fixedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["2.1.0"]},{"vendor":"surrealdb","product":"surrealdb","versions":["2.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T15:14:06.641107Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-55676","exploited":false,"provenance":"source"}}