Skip to content

CVE-2024-58356 SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE

LowCVSS 2.3 EPSS 0.27%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

5 packages: 5 fixed.

PackageAffectedFixed inStatus
crates.io surrealdb < 2.1.4 2.1.4 Fixed
crates.io surrealdb(crates.io) >= 2.0.0, < 2.1.4 2.1.4 Fixed
crates.io surrealdb-core < 2.1.4 2.1.4 Fixed
crates.io surrealdb-core(crates.io) >= 2.0.0, < 2.1.4 2.1.4 Fixed
surrealdb >= 2.0.0, < 2.1.4 2.1.4 Fixed

Affected products

ProductAffected versionsFixed in
crates.io surrealdb(crates.io) >= 2.0.0, < 2.1.4 2.1.4
crates.io surrealdb-core(crates.io) >= 2.0.0, < 2.1.4 2.1.4
crates.io surrealdb < 2.1.4 2.1.4
crates.io surrealdb-core < 2.1.4 2.1.4
surrealdb >= 2.0.0, < 2.1.4 2.1.4

References