What’s Vulnerable › Vulnerabilities
CVE-2024-58363: SurrealDB before 1.5.4 Authentication Bypass via Database Switch
- Severity: medium (CVSS 6.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-18 · updated 2026-10-29
- Weakness: CWE-287
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
- surrealdb: before 1.5.4; 2.0.0-alpha1, 2.0.0-alpha2, 2.0.0-alpha3, 2.0.0-alpha4, 2.0.0-alpha5 — fixed in 1.5.4
- surrealdb: before 1.5.4 — fixed in 1.5.4
- surrealdb-core: before 1.5.1 — fixed in 1.5.1
How to fix
Upgrade to a fixed version: surrealdb 1.5.4; surrealdb 1.5.4; surrealdb-core 1.5.1. Check the vendor advisory for mitigations.
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2
- https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch
Get alerted when CVE-2024-58363 or the next vulnerability affects your stack