CVE-2024-58363

SurrealDB before 1.5.4 Authentication Bypass via Database Switch

State
Published
Severity
5.3 Medium
Published
Jul 18, 2026
Updated
Oct 29, 2026
Reserved
Jul 18, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.05.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NVulnCheck
3.16.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LVulnCheck

Weaknesses

Affected Products

ProductVersions
surrealdbsurrealdb
  • before 1.5.4Affected
  • 1.5.4Not affected
surrealdbsurrealdb
  • 2.0.0-alpha.1 to before 2.0.0-alpha.6Affected
  • 2.0.0-alpha.6Not affected
surrealdb-coresurrealdb
  • before 1.5.1Affected
  • 1.5.1Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.