Skip to content
OpenAdvisories
Medium · 6.3 CVE-2024-58363 EUVD-2024-55679GHSA-gh9f-6xm2-c4j2GHSA-hgp5-pm7v-q8vg

SurrealDB before 1.5.4 Authentication Bypass via Database Switch

Published Jul 18, 2026 · Updated Oct 29, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
surrealdb surrealdb < 1.5.4, 2.0.0-alpha.1 – < 2.0.0-alpha.6 1.5.4
surrealdb surrealdb-core < 1.5.1 1.5.1

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io surrealdb < 1.5.4 1.5.4 GHSA-gh9f-6xm2-c4j2
crates.io surrealdb >= 2.0.0-alpha.1, < 2.0.0-alpha.6 2.0.0-alpha.6 GHSA-gh9f-6xm2-c4j2
crates.io surrealdb-core < 1.5.1 1.5.1 GHSA-gh9f-6xm2-c4j2

References