Auth bypass in Surrealdb

CVE-2024-58363

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.

Vulnerability class: Broken Authentication

EPSS: 0.003 (27.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.

Affected products

  • Surrealdb — versions 1.5.1, 2.0.0-alpha.6, 0

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-58363?
CVE-2024-58363 is a medium-severity vulnerability in Surrealdb, classified under Improper Authentication. CVSS score: 6.3/10. Published 2026-07-18.
How severe is CVE-2024-58363?
Medium severity. CVSS v3 base score is 6.3 out of 10.