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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- GitHub Security Advisory (GHSA-27vq-hv74-7cqp) vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com product
- VulnCheck Advisory: SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE third-party-advisory
- github.com