# CVE-2024-58356: SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE

- Severity: Low 2.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-12-16T17:38:53.000Z
- Modified: 2026-10-27T18:10:00.130Z
- Also known as: GHSA-27vq-hv74-7cqp
- Weaknesses: CWE-276, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 2.1.4; from 2.0.0 before 2.1.4 (not affected: 2.1.4)
- surrealdb (crates.io): from 2.0.0 before 2.1.4
- surrealdb-core (crates.io): from 2.0.0 before 2.1.4

## Every score

- VulnCheck: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`

## 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)

## Sources

- CVE List: [CVE-2024-58356](https://www.cve.org/CVERecord?id=CVE-2024-58356), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-27vq-hv74-7cqp](https://github.com/advisories/GHSA-27vq-hv74-7cqp), CC-BY-4.0, modified 2026-09-04
- NVD: [CVE-2024-58356](https://nvd.nist.gov/vuln/detail/CVE-2024-58356), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2024-58356 · Whole record: https://cve.day/CVE-2024-58356.json · Rebuilt by cve.day 2026-11-25T22:58:53.047Z
