{"id":"GHSA-hgp5-pm7v-q8vg","summary":"Duplicate Advisory: SurrealDB vulnerable to Improper Authentication when Changing Databases as Scope User","details":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-gh9f-6xm2-c4j2. This link is maintained to preserve external references.\n\n## Original Description\nSurrealDB 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.","modified":"2026-09-04T19:00:04.273517723Z","published":"2026-07-18T15:31:48Z","withdrawn":"2026-09-04T18:43:49Z","database_specific":{"cwe_ids":["CWE-287"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-09-04T18:43:49Z","nvd_published_at":"2026-07-18T14:17:09Z"},"references":[{"type":"WEB","url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58363"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch"}],"affected":[{"package":{"name":"surrealdb","ecosystem":"crates.io","purl":"pkg:cargo/surrealdb"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.5.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-hgp5-pm7v-q8vg/GHSA-hgp5-pm7v-q8vg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}