CVE-2024-58356
published low CVSS 4.0 · 2.3SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| surrealdb | — | surrealdb0 to < 2.1.4 (affected · semver) · 2.1.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| surrealdb | — | surrealdb0 to < 2.1.4 (affected · semver) · 2.1.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- VulnCheck · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| surrealdb | surrealdb | 0 to < 2.1.4 (affected · semver)2.1.4 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| surrealdb | surrealdb | 0 to < 2.1.4 (affected · semver)2.1.4 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-276 Incorrect Default Permissions
References
2- GitHub Security Advisory (GHSA-27vq-hv74-7cqp) https://github.com/surrealdb/surrealdb/security/advisories/GHSA-27vq-hv74-7cqp
- VulnCheck Advisory: SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE https://www.vulncheck.com/advisories/surrealdb-before-permission-bypass-via-define-table-overwrite
Provider assertions
2VulnCheck · cna
SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a4ea9edee19cf680d118a41d0f69faf5f95f3b6ea760e7e7c06426de91ef3d2d
- Ingested
- 23 Sep 2026, 08:32:30 UTC
- Source record
- Official CVE record