CVE-2024-58356
LOW 2.3CVSS 4.0SurrealDB has Silent Failure to Overwrite Table Definition of Relation Type
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.
- Published
- 18 Jul 2026
- Last modified
- 27 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-276CWE-732
- Also known as
- GHSA-27vq-hv74-7cqp
- Sources
- NVDJSONOSV GHSA-27vq-hv74-7cqpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | LOW 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.1.4 | 2.1.4 |
| OSV | crates.io | surrealdb | >= 2.0.0, < 2.1.4 | 2.1.4 |
| OSV | crates.io | surrealdb-core | >= 2.0.0, < 2.1.4 | 2.1.4 |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-27vq-hv74-7cqp · Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/surrealdb-before-permission-bypass-via-define-table-overwrite · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-58356 · ADVISORY
- https://github.com/surrealdb/surrealdb/pull/5260 · WEB
- https://github.com/surrealdb/surrealdb/commit/2f9a58f830c24f107b4783da1f0704a502bc7734 · WEB
- https://github.com/surrealdb/surrealdb · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 18 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Dec 2024)