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

Configuration 1 (hide)

cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

History

27 Oct 2026, 18:10

Type Values Removed Values Added
Summary
  • (es) Las versiones de SurrealDB anteriores a la 2.1.0 contienen una vulnerabilidad de excepción no capturada en la función rand::time() que entra en pánico cuando se llama a unwrap sobre un resultado None de timestamp_opt. Los clientes autorizados pueden invocar repetidamente rand::time() para provocar de forma fiable pánicos en el servidor y causar denegación de servicio.

12 Aug 2026, 18:52

Type Values Removed Values Added
References () https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h4f5-h82v-5w4r - () https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h4f5-h82v-5w4r - Vendor Advisory
References () https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-time - () https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-rand-time - Third Party Advisory
CPE cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
First Time Surrealdb
Surrealdb surrealdb

18 Jul 2026, 14:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-18 14:17

Updated : 2026-10-27 18:10


NVD link : CVE-2024-58357

Mitre link : CVE-2024-58357

CVE.ORG link : CVE-2024-58357


JSON object : View

Products Affected

surrealdb

  • surrealdb
CWE
CWE-248

Uncaught Exception