Medium severity · published Jul 18, 2026
CVE-2024-58363
SurrealDB before 1.5.4 Authentication Bypass via Database Switch
6.3
CVSS
0.3%
EPSS
No
On KEV
Description
SurrealDB before 1.5.4 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 28% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SU
surrealdb · surrealdb
before 1.5.4; before 2.0.0-alpha.6; before 1.5.1 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-58363
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-58363
Vendor Advisory
https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2
Third Party Advisory
https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch
More from surrealdb
8.8
CVE-2026-63763
SurrealDB before 2.5.0 Privilege Escalation via Future Fields
8.8
CVE-2026-63757
SurrealDB before 3.1.0 Session Hijacking via /rpc sessions
8.8
CVE-2025-71390
SurrealDB before 2.3.6 deny-net Bypass via DNS Resolution
8.8
CVE-2024-58366
SurrealDB before 1.1.1 Format String via Scripting Functions
8.8
CVE-2024-58362
SurrealDB before 1.5.5 Query Injection via RPC API
