---
id: CVE-2024-58356
title: >-
  SurrealDB before 2.1.4 silently fails to overwrite table definitions when the
  DEFINE TABLE ..
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…
severity: none
cwe:
  - CWE-276
published: '2026-07-18'
updated: '2026-07-18'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-58356'
references:
  - url: >-
      https://github.com/surrealdb/surrealdb/security/advisories/GHSA-27vq-hv74-7cqp
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/surrealdb-before-permission-bypass-via-define-table-overwrite
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-07-19T03:27:58.264Z'
epss: 0.00273
epssPercentile: 0.17532
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
