Skip to content
OpenAdvisories
Medium · 6.5 CVE-2024-58357 EUVD-2024-55674GHSA-3h9v-xwgf-h5c5GHSA-h4f5-h82v-5w4r

SurrealDB before 2.1.0 Denial of Service via rand::time()

Published Jul 18, 2026 · Updated Jul 28, 2026 · 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.

Affected products

VendorProductAffectedFixed
surrealdb surrealdb < 2.1.0 2.1.0

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io surrealdb < 2.1.0 2.1.0 GHSA-h4f5-h82v-5w4r
crates.io surrealdb-core < 2.1.0 2.1.0 GHSA-h4f5-h82v-5w4r

References