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.
Fix
Patch, vendor advisory and mitigation references on NVD 1
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 5.3 · surrealdbNVD modified 2026-10-27 18:10
Affected (CPE criteria) 6
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha1:*:*:*:*:*:*cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha2:*:*:*:*:*:*cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha3:*:*:*:*:*:*cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha4:*:*:*:*:*:*cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha5:*:*:*:*:*:*