CVE-2024-58363

published 18 Jul 2026 · updated 29 Oct 2026

SurrealDB before 1.5.4 Authentication Bypass via Database Switch

6.3MediumCVSS 6.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.5.1, 1.5.4 and 2.0.0-alpha.6.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
surrealdb<1.5.1, <1.5.4, >=2.0.0-alpha.1 <2.0.0-alpha.61.5.1, 1.5.4, 2.0.0-alpha.6

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-58363 severity on Zeptric[![CVE-2024-58363](https://zeptric.io/badge/cve/CVE-2024-58363.svg)](https://zeptric.io/cve/CVE-2024-58363)