cve.bz

CVE-2024-58363

5.3 mediumEPSS 0.3%

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.

CVSS 4.0
5.3CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
CVSS 3.1
6.3CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS
0.3% chance of exploitation in the next 30 days; higher than 27% of CVEs (scores of 2026-10-27)
CWE
CWE-287
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gh9f-6xm2-c4j2crates.iosurrealdb<1.5.41.5.4
GHSA-gh9f-6xm2-c4j2crates.iosurrealdb>=2.0.0-alpha.1 <2.0.0-alpha.62.0.0-alpha.6
GHSA-gh9f-6xm2-c4j2crates.iosurrealdb-core<1.5.11.5.1

References

Check your stackJSON