Advisory record · GHSA-gh9f-6xm2-c4j2

SurrealDB vulnerable to Improper Authentication when Changing Databases as Scope User

CVSS 5.3 MediumEPSS 0.0034 · 28th percentile

Published by the GitHub Advisory Database at 11 Jul 2024, 13:19 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
surrealdbcrates.io<1.5.4 || >=2.0.0-alpha.1, <2.0.0-alpha.61.5.4, 2.0.0-alpha.6
surrealdb-corecrates.io<1.5.11.5.1
Identifiers
GHSA-gh9f-6xm2-c4j2 · CVE-2024-58363
Weakness (CWE)
CWE-287
Published
11 Jul 2024
Updated
19 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

SurrealDB (crates.io surrealdb versions below 1.5.4 and 2.0.0-alpha.1 through below 2.0.0-alpha.6) and surrealdb-core below 1.5.1 fail to re-validate a scope user's authentication when the session switches databases with the use method or USE clause. An authenticated scope user could act as an unrelated user with the same record identifier in another database, if table permissions rely only on $auth. Upgrade surrealdb to 1.5.4 or 2.0.0-alpha.6, and surrealdb-core to 1.5.1.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 4.0 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0034, the 28th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:18 UTC First seen by agentprime
  2. 31 Oct 2026, 15:18 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.