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… (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.
AI Analysis
Technical Summary
CVE-2024-58357 affects SurrealDB versions before 2.1.0. The vulnerability arises from the rand::time() function calling unwrap on a None value returned by timestamp_opt, leading to an uncaught exception and server panic. This can be triggered repeatedly by authorized clients, causing denial of service. The issue is categorized under CWE-248 (Uncaught Exception). No patch or remediation information is provided in the source data.
Potential Impact
Exploitation allows authorized clients to cause the SurrealDB server to panic repeatedly, resulting in denial of service. This disrupts availability of the database service. There is no indication of data compromise or privilege escalation from the provided information.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to authorized clients and monitor for unusual invocation patterns of the rand::time() function to reduce risk of denial of service.
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… (CVE-2024-58357)
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.
CVSS v4.0
Affected software
pkg:github/surrealdb/surrealdbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-58357 affects SurrealDB versions before 2.1.0. The vulnerability arises from the rand::time() function calling unwrap on a None value returned by timestamp_opt, leading to an uncaught exception and server panic. This can be triggered repeatedly by authorized clients, causing denial of service. The issue is categorized under CWE-248 (Uncaught Exception). No patch or remediation information is provided in the source data.
Potential Impact
Exploitation allows authorized clients to cause the SurrealDB server to panic repeatedly, resulting in denial of service. This disrupts availability of the database service. There is no indication of data compromise or privilege escalation from the provided information.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to authorized clients and monitor for unusual invocation patterns of the rand::time() function to reduce risk of denial of service.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-3h9v-xwgf-h5c5
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2024-58357"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a5ba18144ab8fbf7c789f6a
Added to database: 07/18/2026, 15:53:37 UTC
Last enriched: 07/18/2026, 16:24:12 UTC
Last updated: 07/18/2026, 19:40:32 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.