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.
References
| Link | Resource |
|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2 | Vendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch | Third Party Advisory |
Configurations
Configuration 1 (hide)
|
History
29 Oct 2026, 21:17
| Type | Values Removed | Values Added |
|---|---|---|
| Summary | (en) 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. |
27 Oct 2026, 18:10
| Type | Values Removed | Values Added |
|---|---|---|
| Summary |
|
12 Aug 2026, 18:37
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha3:*:*:*:*:*:* cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha5:*:*:*:*:*:* cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha4:*:*:*:*:*:* cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha1:*:*:*:*:*:* cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha2:*:*:*:*:*:* |
|
| First Time |
Surrealdb
Surrealdb surrealdb |
|
| References | () https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2 - Vendor Advisory | |
| References | () https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch - Third Party Advisory |
18 Jul 2026, 14:17
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-07-18 14:17
Updated : 2026-10-29 21:17
NVD link : CVE-2024-58363
Mitre link : CVE-2024-58363
CVE.ORG link : CVE-2024-58363
JSON object : View
Products Affected
surrealdb
- surrealdb
CWE
CWE-287
Improper Authentication
