CVE-2024-58363
MEDIUM
6.3
CVSS 3.1
Description
SurrealDB before 1.5.4 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.
Metadata
Severity & Metrics
6.3
MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Affected products (3)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| surrealdb | surrealdb | — | 0 < 1.5.4, 1.5.4 |
| surrealdb | surrealdb | — | 0 < 2.0.0-alpha.6, 2.0.0-alpha.6 |
| surrealdb | surrealdb | — | 0 < 1.5.1, 1.5.1 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-287 | cna | Improper Authentication |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 6.3 | MEDIUM | 3.1 | cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| 5.3 | MEDIUM | 4.0 | cna | 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 |
References (2)
- GitHub Security Advisory (GHSA-gh9f-6xm2-c4j2) https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2
- VulnCheck Advisory: SurrealDB before 1.5.4 Authentication Bypass via Database Switch https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch