{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-58359","id":"CVE-2024-58359","title":"SurrealDB before 2.1.0 Denial of Service via rand() Sorting","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.","descriptionLong":"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","updated":"2026-10-29T02:30:46.030557394Z","reserved":"2026-06-08T15:20:35.497Z","status":"Analyzed","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":7.1,"vector":"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","rating":"high","source":"VulnCheck"},"metrics":[{"version":"4.0","score":7.1,"vector":"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","rating":"high","source":"VulnCheck"},{"version":"4.0","score":7.1,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"vulncheck.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"VulnCheck"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"vulncheck.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"}],"rating":"high","products":["surrealdb"],"affectedProducts":[{"vendor":"surrealdb","product":"surrealdb","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"2.1.0"},{"version":"2.1.0","status":"unaffected","versionType":"semver"}],"platforms":[]},{"vendor":"surrealdb","product":"surrealdb","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"2.1.0"},{"version":"2.1.0","status":"unaffected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":["<2.1.0"],"fixed":["2.1.0"],"advisory":"GHSA-m52v-24p8-654f"},{"ecosystem":"crates.io","name":"surrealdb-core","purl":"pkg:cargo/surrealdb-core","ranges":["<2.1.0"],"fixed":["2.1.0"],"advisory":"GHSA-m52v-24p8-654f"}],"cwes":["CWE-248"],"aliases":["GHSA-m52v-24p8-654f"],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m52v-24p8-654f","tags":["vendor-advisory","Vendor Advisory","advisory","web"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-sorting","tags":["third-party-advisory","Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58359.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58359","tags":["advisory"]},{"url":"https://github.com/surrealdb/surrealdb/issues/4969","tags":["web"]},{"url":"https://github.com/surrealdb/surrealdb/pull/4805","tags":["web"]},{"url":"https://github.com/surrealdb/surrealdb/pull/4906","tags":["web"]},{"url":"https://github.com/surrealdb/surrealdb/pull/4989","tags":["web"]},{"url":"https://github.com/surrealdb/surrealdb","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0045,"epssPercentile":0.39879,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-58359","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58359","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-58359","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-m52v-24p8-654f","ok":true,"note":"GHSA-m52v-24p8-654f"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-58359","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}