CVE-2024-58363

Summary

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.

Affected Software

VendorProductVersion RangeStatus
surrealdbsurrealdb0 < 1.5.4affected
surrealdbsurrealdb1.5.4unaffected
surrealdbsurrealdb0 < 2.0.0-alpha.6affected
surrealdbsurrealdb2.0.0-alpha.6unaffected
surrealdbsurrealdb0 < 1.5.1affected
surrealdbsurrealdb1.5.1unaffected

Weaknesses

  • CWE-287: Improper Authentication

References