{"id":"CVE-2024-58363","published":"2026-07-18T13:10:04Z","modified":"2026-10-29T21:15:08Z","title":"SurrealDB before 1.5.4 Authentication Bypass via Database Switch","vendor":"surrealdb","product":"surrealdb","tier":"tail","description":{"text":"SurrealDB before 1.5.4 and 2.0.0-alpha.1 before 2.0.0-alpha.6 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00343,"percentile":0.20287,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch","tags":["third-party-advisory"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":4.06},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"surrealdb","affectedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["< 1.5.4"]},{"vendor":"surrealdb","product":"surrealdb","versions":[">= 2.0.0-alpha.1, < 2.0.0-alpha.6"]},{"vendor":"surrealdb","product":"surrealdb-core","versions":["< 1.5.1"]}],"fixedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["1.5.4"]},{"vendor":"surrealdb","product":"surrealdb","versions":["2.0.0-alpha.6"]},{"vendor":"surrealdb","product":"surrealdb-core","versions":["1.5.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T19:23:37.733571Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-55679","exploited":false,"provenance":"source"}}