# CVE-2024-58357: SurrealDB before 2.1.0 Denial of Service via rand::time()

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2024-11-22T20:11:38.000Z
- Modified: 2026-10-27T18:10:00.130Z
- Also known as: GHSA-h4f5-h82v-5w4r
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 2.1.0 (not affected: 2.1.0)
- surrealdb (crates.io): before 2.1.0
- surrealdb-core (crates.io): before 2.1.0

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h4f5-h82v-5w4r> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-time> (third-party-advisory)
- <https://github.com/surrealdb/surrealdb/pull/5126> (web)
- <https://github.com/surrealdb/surrealdb> (package)

## Sources

- CVE List: [CVE-2024-58357](https://www.cve.org/CVERecord?id=CVE-2024-58357), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-h4f5-h82v-5w4r](https://github.com/advisories/GHSA-h4f5-h82v-5w4r), CC-BY-4.0, modified 2026-07-19
- NVD: [CVE-2024-58357](https://nvd.nist.gov/vuln/detail/CVE-2024-58357), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2024-58357 · Whole record: https://cve.day/CVE-2024-58357.json · Rebuilt by cve.day 2026-11-25T22:58:53.047Z
