CVE-2024-58363
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.
- CVSS 4.0
- 5.3
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 - CVSS 3.1
- 6.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - EPSS
- 0.3% chance of exploitation in the next 30 days; higher than 27% of CVEs (scores of 2026-10-27)
- CWE
- CWE-287
- Published
- Modified
- Record from
- the NVD, synced
Affected
- surrealdb:surrealdb
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-gh9f-6xm2-c4j2 | 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 |