CVE-2024-58359
published high CVSS 4.0 · 7.1SurrealDB before 2.1.0 Denial of Service via rand() Sorting
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| surrealdb | — | surrealdb0 to < 2.1.0 (affected · semver) · 2.1.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| surrealdb | — | surrealdb0 to < 2.1.0 (affected · semver) · 2.1.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| surrealdb | surrealdb | 0 to < 2.1.0 (affected · semver)2.1.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| surrealdb | surrealdb | 0 to < 2.1.0 (affected · semver)2.1.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-248 Uncaught Exception
References
2- GitHub Security Advisory (GHSA-m52v-24p8-654f) https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m52v-24p8-654f
- 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
Provider assertions
2VulnCheck · cna
SurrealDB before 2.1.0 Denial of Service via rand() Sorting
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 49013e05ba63e0120de45a6b37897cf3cec381feba9fdd4ed5ab90eb778bf83e
- Ingested
- 23 Sep 2026, 08:32:30 UTC
- Source record
- Official CVE record