CVE-2024-58359
MEDIUM
6.5
CVSS 3.1
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.
Metadata
Severity & Metrics
6.5
MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected products (2)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| surrealdb | surrealdb | — | 0 < 2.1.0, 2.1.0 |
| surrealdb | surrealdb | — | 0 < 2.1.0, 2.1.0 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-248 | cna | Uncaught Exception |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 7.1 | HIGH | 4.0 | cna | 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.5 | MEDIUM | 3.1 | cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
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