Skip to main content
EPSS 0.5%top 61%

Duplicate Advisory: SurrealDB has an Uncaught Exception Handling Nonexistent Role

0
Medium
Published: 11/22/2024 (11/22/2024, 20:11:44 UTC)
Source: GCVE Database
Product: surrealdb

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Affected software

GitHub Actionsmore threats →ai
surrealdb/surrealdb
pkg:github/surrealdb/surrealdb
Affected versions
<2.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/15/2026, 07:52:10 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses