Duplicate Advisory: SurrealDB has an Uncaught Exception Handling Nonexistent Role
Description
SurrealDB versions prior to 2.1.0 have a denial of service vulnerability caused by uncaught exception handling when a user is assigned a nonexistent role. Privileged owner users can define users with invalid roles, and attackers can trigger a server crash by signing in with such users.
CVSS v3.1
Score 4.9medium
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-58358 describes a denial of service vulnerability in SurrealDB before version 2.1.0. The issue arises from improper handling of role conversion where privileged owner users can create users assigned to roles that do not exist. When an attacker signs in using a user with an invalid role, the server encounters an uncaught panic, leading to a crash. This vulnerability is classified under CWE-248 (Uncaught Exception). The CVSS v3.1 score is 4.9 (medium severity), reflecting network attack vector, low complexity, high privileges required, no user interaction, unchanged scope, no confidentiality or integrity impact, but high availability impact.
Potential Impact
The vulnerability allows attackers to cause a denial of service by crashing the SurrealDB server when signing in with a user assigned a nonexistent role. There is no impact on confidentiality or integrity, but availability is affected due to server crashes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links are provided and no official fix is mentioned, users should monitor vendor communications for updates. Until a fix is available, avoid assigning nonexistent roles to users and restrict privileged owner user actions to trusted administrators.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9qrf-6whp-92w3
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2024-58358"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a5ba17f44ab8fbf7c789e96
Added to database: 07/18/2026, 15:53:35 UTC
Last enriched: 09/15/2026, 07:52:10 UTC
Last updated: 10/17/2026, 18:48:11 UTC
Views: 224
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.