Skip to main content
← All vulnerabilities
CVE-2024-58356GHSA-27VQ-HV74-7CQP

SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE

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

Summary

SurrealDB before 2.1.4 silently fails to overwrite table definitions when the DEFINE TABLE ... OVERWRITE clause is used on tables defined with TYPE RELATION. Because table definitions include the PERMISSIONS clause, an attempt to tighten a table's permissions via OVERWRITE does not take effect, and the administrator may incorrectly believe the change was applied. As a result, a client authorized to run queries may continue to access data in that table that the updated (but unapplied) permissions were intended to restrict.

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 2.1.4

  • surrealdb surrealdb

    fixed in 2.1.4

  • surrealdbcrates.io

    From 2.0.0 · fixed in 2.1.4

  • surrealdb-corecrates.io

    From 2.0.0 · fixed in 2.1.4

References 2

GitHub · surrealdb/surrealdb

vulncheck.com