{"id":"CVE-2024-58359","aliases":["GHSA-m52v-24p8-654f"],"url":"https://o3.security/vulnerability/CVE-2024-58359","summary":"SurrealDB before 2.1.0 Denial of Service via rand() Sorting","details":"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.","published":"2026-07-18T13:10:02.920Z","modified":"2026-08-14T04:03:18.069657970Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"surrealdb","fixedVersion":"2.1.0"},{"ecosystem":"crates.io","name":"surrealdb-core","fixedVersion":"2.1.0"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58359.json"},{"type":"ADVISORY","url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m52v-24p8-654f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58359"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-sorting"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-14T04:03:18.069657970Z"}}