CVE-2024-58357 Details
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.
A denial-of-service vulnerability has been identified in SurrealDB versions prior to 2.1.0. The issue arises from an uncaught exception in the rand::time() function, which generates a random time from an optional range of Unix timestamps. The function can return None, leading to a panic when unwrap is called, causing server crashes. Authorized clients can exploit this by repeatedly invoking rand::time(), reliably triggering server panics and causing a denial-of-service condition.
Users can update to SurrealDB version 2.1.0 or later, where this vulnerability has been patched. Those unable to update may restrict untrusted clients from using the rand::time() function and ensure the SurrealDB process can automatically restart after a crash.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h4f5-h82v-5w4r | [email protected] | Vendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-time | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-248 | Uncaught Exception | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| surrealdb surrealdb | < 2.1.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 12, 2026 | Initial Analysis | [email protected] |
| Jul 22, 2026 | CVE Modified | CISA-ADP |
| Jul 18, 2026 | New CVE Received | [email protected] |