Duplicate Advisory: SurrealDB vulnerable to Improper Authentication when Changing Databases as Scope User
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
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
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.
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 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.