Vulnerability in Surrealdb
CVE-2024-58357
SurrealDB versions before 2.1.0 contain an uncaught exception vulnerability in the rand::time() function that panics when unwrap is called on a None result from timestamp_opt. Authorized clients can repeatedly invoke rand::time() to reliably trigger server panics and cause denial of service.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.004 (38.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 38th percentile — 38.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Surrealdb — versions 0, 2.1.0
Weakness classification (CWE)
References
- github.com/surrealdb/surrealdb/security/advisories/GHSA-h4f5-h82v-5w4r (vendor-advisory, Vendor Advisory)
- www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-time (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2024-58357?
- CVE-2024-58357 is a medium-severity vulnerability in Surrealdb, classified under CWE-248. CVSS score: 6.5/10. Published 2026-07-18.
- How severe is CVE-2024-58357?
- Medium severity. CVSS v3 base score is 6.5 out of 10.