Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

SurrealDB versions before 1.5.4 have an authentication validation flaw when a scoped user switches databases using the USE clause or use method. (CVE-2024-58363)

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

Description

SurrealDB versions before 1.5.4 have an authentication validation flaw when a scoped user switches databases using the USE clause or use method. This flaw allows an authenticated user to impersonate another user in a different database if a user record with the same identifier exists, potentially enabling unauthorized actions if permissions rely solely on the $auth parameter.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

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: 07/18/2026, 16:23:41 UTC

Technical Analysis

The vulnerability in SurrealDB prior to version 1.5.4 involves improper validation of authentication when a scoped user switches databases via the USE clause or use method. An attacker with an authenticated session can exploit this by impersonating an unrelated user in another database if that database contains a user record with an identical identifier. This can lead to unauthorized actions if the system's permission checks depend exclusively on the $auth parameter, effectively bypassing intended access controls.

Potential Impact

An attacker with an authenticated session can impersonate another user in a different database, potentially performing unauthorized actions if the application relies solely on the $auth parameter for permission enforcement. This could lead to privilege escalation or unauthorized data access within the affected SurrealDB instances.

Mitigation Recommendations

A fix is available in SurrealDB version 1.5.4. Users should upgrade to version 1.5.4 or later to address this authentication validation issue. No other mitigations are specified.

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"]
Ecosystems
[]
Database Specific Severity
MODERATE
Cvss Version
4.0

Threat ID: 6a5ba17f44ab8fbf7c789e78

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

Last enriched: 07/18/2026, 16:23:41 UTC

Last updated: 07/18/2026, 18:37:16 UTC

Views: 13

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