What’s Vulnerable › Vulnerabilities
CVE-2024-58356: SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE
- Severity: medium (CVSS 6.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-18 · updated 2026-10-27
- Weakness: CWE-276
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
- surrealdb: from 2.0.0 before 2.1.4 — fixed in 2.1.4
How to fix
Upgrade to a fixed version: surrealdb 2.1.4. Check the vendor advisory for mitigations.
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-27vq-hv74-7cqp
- https://www.vulncheck.com/advisories/surrealdb-before-permission-bypass-via-define-table-overwrite
Get alerted when CVE-2024-58356 or the next vulnerability affects your stack