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
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
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 6.3 Medium | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulnCheck |
Weaknesses
- CWE-287 Improper Authentication
Affected Products
| Product | Versions |
|---|---|
surrealdbsurrealdb |
|
surrealdbsurrealdb |
|
surrealdb-coresurrealdb |
|
References
- GitHub Security Advisory (GHSA-gh9f-6xm2-c4j2)vendor-advisory
- VulnCheck Advisory: SurrealDB before 1.5.4 Authentication Bypass via Database Switchthird-party-advisory
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.