CVE-2024-58363
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
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| surrealdb | surrealdb | 0 < 1.5.4 | affected |
| surrealdb | surrealdb | 1.5.4 | unaffected |
| surrealdb | surrealdb | 0 < 2.0.0-alpha.6 | affected |
| surrealdb | surrealdb | 2.0.0-alpha.6 | unaffected |
| surrealdb | surrealdb | 0 < 1.5.1 | affected |
| surrealdb | surrealdb | 1.5.1 | unaffected |
Weaknesses
- CWE-287: Improper Authentication
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2
- https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.