NetSight
medium6.3No CVE yet

GHSA-hgp5-pm7v-q8vg

Duplicate Advisory: SurrealDB vulnerable to Improper Authentication when Changing Databases as Scope User

Impact

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-gh9f-6xm2-c4j2. This link is maintained to preserve external references. ## Original 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.

An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: low risk of data being read, low risk of data or systems being changed, low risk of outages.

Affected packages

EcosystemPackageAffectedFixed in
rustsurrealdb<= 1.5.3none recorded

Weakness classification

References