CVE-2024-58363

MEDIUM CVSS 4.0: 5.3 EPSS 0.34%
Updated Oct 30, 2026
Surrealdb
Parameter Value
CVSS 5.3 (MEDIUM)
Affected Versions before 1.5.4
Fixed In 1.5.4
Type CWE-287 (Improper Authentication)
Vendor Surrealdb
Public PoC No

SurrealDB before 1.5.4 and 2.0.0-alpha.1 before 2.0.0-alpha.6 fails to properly validate authentication when a scope user switches databases using the USE clause or use method. Attackers with an authenticated session can impersonate an unrelated user in a different database if a user record with an identical identifier exists, allowing unauthorized actions if permissions rely solely on the $auth parameter.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
Low
Partial disruption

CVSS Vector v4.0

Vulnerable Products 6

Configuration From (including) Up to (excluding)
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
— 1.5.4
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha1:*:*:*:*:*:*
— —
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha2:*:*:*:*:*:*
— —
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha3:*:*:*:*:*:*
— —
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha4:*:*:*:*:*:*
— —
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha5:*:*:*:*:*:*
— —