Skip to main content
← All vulnerabilities
CVE-2024-58363GHSA-GH9F-6XM2-C4J2

SurrealDB before 1.5.4 Authentication Bypass via Database Switch

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.5.4, 2.0.0-alpha.6, 1.5.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • surrealdb surrealdb

    fixed in 1.5.4

  • surrealdb surrealdb

    From 2.0.0-alpha.1 · fixed in 2.0.0-alpha.6

  • surrealdb surrealdb-core

    fixed in 1.5.1

  • surrealdbcrates.io

    fixed in 1.5.4

  • surrealdbcrates.io

    From 2.0.0-alpha.1 · fixed in 2.0.0-alpha.6

  • surrealdb-corecrates.io

    fixed in 1.5.1

References 2

GitHub · surrealdb/surrealdb

vulncheck.com