What’s Vulnerable › Vulnerabilities
CVE-2024-58357: SurrealDB before 2.1.0 Denial of Service via rand::time()
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-18 · updated 2026-10-27
- Weakness: CWE-248
Description
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.
Affected products
- surrealdb: before 2.1.0 — fixed in 2.1.0
How to fix
Upgrade to a fixed version: surrealdb 2.1.0. Check the vendor advisory for mitigations.
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h4f5-h82v-5w4r
- https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-time
Get alerted when CVE-2024-58357 or the next vulnerability affects your stack