SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| surrealdb | surrealdb | before 2.1.4 | 2.1.4 | Patch available | CNA |
| surrealdb | surrealdb | before 2.1.4 | 2.1.4 | Patch available | CNA |
| — | surrealdb (crates.io) | 2.0.0 to before 2.1.4 | 2.1.4 | Patch available | GHSA-27vq-hv74-7cqp |
| — | surrealdb-core (crates.io) | 2.0.0 to before 2.1.4 | 2.1.4 | Patch available | GHSA-27vq-hv74-7cqp |
- surrealdb Vendorsurrealdb Affected before 2.1.4 Fixed in 2.1.4 Patch available CNA
- surrealdb Vendorsurrealdb Affected before 2.1.4 Fixed in 2.1.4 Patch available CNA
- surrealdb (crates.io) Vendor— Affected 2.0.0 to before 2.1.4 Fixed in 2.1.4 Patch available GHSA-27vq-hv74-7cqp
- surrealdb-core (crates.io) Vendor— Affected 2.0.0 to before 2.1.4 Fixed in 2.1.4 Patch available GHSA-27vq-hv74-7cqp
Remediation
- Fix · CNA surrealdb (surrealdb) Fixed in 2.1.4
- Fix · CNA surrealdb (surrealdb) Fixed in 2.1.4
- Fix · GHSA-27vq-hv74-7cqp surrealdb (crates.io) Fixed in 2.1.4 Advisory →
- Fix · GHSA-27vq-hv74-7cqp surrealdb-core (crates.io) Fixed in 2.1.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-58356
- 2026-10-03 Alias added: GHSA-27vq-hv74-7cqp
References
More Surrealdb vulnerabilities
- TI-2026-45344 SurrealDB before 3.1.0 Session Hijacking via /rpc sessions CVSS 4.0HIGH 8.7
- TI-2024-38452 SurrealDB before 1.1.0 Denial of Service via HTTP Headers CVSS 4.0HIGH 8.7
- TI-2026-45347 SurrealDB before 3.1.0 Denial of Service via JSON Parser CVSS 4.0HIGH 8.7
- TI-2026-45334 SurrealDB before 3.1.0 Denial of Service via malformed RPC use CVSS 4.0HIGH 8.7
- TI-2025-43508 SurrealDB before 2.2.2 SurrealQL Injection via export CVSS 4.0CRITICAL 9.4
- TI-2026-45343 SurrealDB before 3.1.0 Privilege Escalation via RPC Session Race Condition CVSS 4.0CRITICAL 9.2
Sources
- CVE-2024-58356 · CVE Program
- CVE-2024-58356 · NVD
- FIRST EPSS
- GHSA-27vq-hv74-7cqp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences