Skip to content
OpenAdvisories
Low · 2.3 CVE-2024-58356 EUVD-2024-55673GHSA-27vq-hv74-7cqpGHSA-vmg6-53r4-jhpw

SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE

Published Jul 18, 2026 · Updated Jul 28, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
surrealdb surrealdb < 2.1.4 2.1.4

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io surrealdb >= 2.0.0, < 2.1.4 2.1.4 GHSA-27vq-hv74-7cqp
crates.io surrealdb-core >= 2.0.0, < 2.1.4 2.1.4 GHSA-27vq-hv74-7cqp

References