CVE-2024-58356
2.3
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| surrealdb | surrealdb | 0 < 2.1.4 | affected |
| surrealdb | surrealdb | 2.1.4 | unaffected |
| surrealdb | surrealdb | 0 < 2.1.4 | affected |
| surrealdb | surrealdb | 2.1.4 | unaffected |
Weaknesses
- CWE-276: Incorrect Default Permissions
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.