Skip to main content
EPSS 0.3%top 74%

Duplicate Advisory: SurrealDB vulnerable to Improper Authentication when Changing Databases as Scope User

0
Medium
Published: 07/18/2026 (07/18/2026, 15:31:48 UTC)
Source: GCVE Database
Product: surrealdb

Description

SurrealDB versions before 1.5.4 contain an authentication validation flaw when a scope user switches databases using the USE clause or use method. This allows an authenticated user to impersonate another user in a different database if a user with the same identifier exists, potentially enabling unauthorized actions based on the $auth parameter. The vulnerability has a medium severity rating with a CVSS score of 6.3.

CVSS v3.1

Score 6.3medium

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

Affected software

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

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:14 UTC

Technical Analysis

SurrealDB prior to version 1.5.4 does not properly validate authentication when a scope user changes databases via the USE clause or use method. This improper authentication allows an attacker with an authenticated session to impersonate an unrelated user in another database if a user record with the same identifier exists there. This can lead to unauthorized actions if permissions rely solely on the $auth parameter. The issue is tracked as CVE-2024-58363 with a CVSS 3.1 score of 6.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Potential Impact

An attacker with an authenticated session can impersonate another user in a different database if that user has the same identifier, potentially gaining unauthorized access or performing unauthorized actions. The impact includes limited confidentiality, integrity, and availability loss as indicated by the CVSS vector.

Mitigation Recommendations

A fixed version is available starting from SurrealDB 1.5.4. Users should upgrade to version 1.5.4 or later to remediate this vulnerability. Patch status is confirmed by the versioning information indicating affected versions are prior to 1.5.4.

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-hgp5-pm7v-q8vg
Osv Schema Version
1.4.0
Aliases
["CVE-2024-58363"]
Database Specific Severity
MODERATE
Cvss Version
4.0

Threat ID: 6a5ba17f44ab8fbf7c789e78

Added to database: 07/18/2026, 15:53:35 UTC

Last enriched: 09/15/2026, 07:52:14 UTC

Last updated: 10/13/2026, 18:48:11 UTC

Views: 197

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