{"cve":"CVE-2024-58356","nvd":{"published":"2026-07-18T14:17:08.363","modified":"2026-10-27T18:10:00.130","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":2.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3},"cwes":["CWE-276"],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-27vq-hv74-7cqp","https://www.vulncheck.com/advisories/surrealdb-before-permission-bypass-via-define-table-overwrite"],"products":["surrealdb:surrealdb"],"source":"nvd","synced_at":"2026-10-27T18:39:43.087796372+00:00"},"epss":{"cve":"CVE-2024-58356","score":0.00273,"percentile":0.19604,"date":"2026-10-27"},"kev":null,"osv":[{"id":"GHSA-27vq-hv74-7cqp","url":"https://osv.dev/vulnerability/GHSA-27vq-hv74-7cqp","summary":"SurrealDB has Silent Failure to Overwrite Table Definition of Relation Type","modified":"2026-09-04T19:00:05.430424412Z","packages":[{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":[">=2.0.0 <2.1.4"],"fixed":["2.1.4"]},{"ecosystem":"crates.io","name":"surrealdb-core","purl":"pkg:cargo/surrealdb-core","ranges":[">=2.0.0 <2.1.4"],"fixed":["2.1.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}