{"id":"GHSA-hgp5-pm7v-q8vg","revision":"fbecd3b0241f43efaeaa251769b344b1","records":[{"revision":"fbecd3b0241f43efaeaa251769b344b1","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-hgp5-pm7v-q8vg","aliases":[],"title":"Duplicate Advisory: SurrealDB vulnerable to Improper Authentication when Changing Databases as Scope User","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of\u00A0GHSA-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.","state":2,"publishedAt":"2026-07-18T15:31:48+00:00","modifiedAt":"2026-09-04T19:00:04.2735177+00:00","affected":[{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"1.5.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2","https://nvd.nist.gov/vuln/detail/CVE-2024-58363","https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch"],"sourceUrl":"https://github.com/advisories/GHSA-hgp5-pm7v-q8vg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hgp5-pm7v-q8vg","identifiers":["GHSA-hgp5-pm7v-q8vg"]},"retained":false,"historicalAffected":[]}],"coverage":[]}