CVE-2024-58359
SurrealDB has an Uncaught Exception Sorting Tables by Random Order
Summary
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p surrealdb-core --precise 2.1.0
cargo update -p surrealdb --precise 2.1.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| surrealdb-core | crates.io | All versions | 2.1.0 |
| surrealdb | crates.io | All versions | 2.1.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-248
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
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-m52v-24p8-654fWEB
- https://github.com/surrealdb/surrealdb/issues/4969WEB
- https://github.com/surrealdb/surrealdb/pull/4805WEB
- https://github.com/surrealdb/surrealdb/pull/4906WEB
- https://github.com/surrealdb/surrealdb/pull/4989WEB
- https://github.com/surrealdb/surrealdbPACKAGE
Frequently Asked Questions
- What is CVE-2024-58359?
- SurrealDB has an Uncaught Exception Sorting Tables by Random Order This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2024-58359?
- CVE-2024-58359 affects surrealdb-core and surrealdb. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-58359 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2024-58362HIGH
Untrusted Query Object Evaluation in RPC API
- CVE-2024-58367HIGH
Improper Authorization in Select Permissions
- CVE-2025-71397HIGH
SurrealDB CPU exhaustion via custom functions result in total DoS
- CVE-2024-58366HIGH
Externally Controlled Format String in Scripting Functions
- CVE-2024-58361HIGH
SurrealDB has an Uncaught Exception Handling Parsing Errors on Empty Strings
- CVE-2025-71391HIGH
SurrealDB has uncaught exception in Net module that leads to database crash
- CVE-2024-58363MEDIUM
SurrealDB vulnerable to Improper Authentication when Changing Databases as Scope User
- CVE-2024-58357MEDIUM
SurrealDB has an Uncaught Exception in Function Generating Random Time
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies