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

Published · last modified .

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.

EPSS exploit prediction

EPSS: 0.003 (26.5th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 27th percentile — 26.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2024-58363: held from 0.003 to 0.003.

EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: 0.000

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.