{"id":"CVE-2024-58356","published":"2026-07-18T13:10:00Z","modified":"2026-07-28T01:47:46Z","title":"SurrealDB before 2.1.4 Permission Bypass via DEFINE TABLE OVERWRITE","vendor":"surrealdb","product":"surrealdb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00273,"percentile":0.20174,"provenance":"source"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-27vq-hv74-7cqp","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-permission-bypass-via-define-table-overwrite","tags":["third-party-advisory"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":4.03},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"surrealdb","affectedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["< 2.1.4"]},{"vendor":"surrealdb","product":"surrealdb","versions":["< 2.1.4"]}],"fixedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["2.1.4"]},{"vendor":"surrealdb","product":"surrealdb","versions":["2.1.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T19:23:39.284384Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"surrealdb","vulnerableRanges":[">=2.0.0, <2.1.4"],"patched":["2.1.4"],"from":["GHSA-27vq-hv74-7cqp"],"provenance":"source"},{"ecosystem":"crates.io","package":"surrealdb-core","vulnerableRanges":[">=2.0.0, <2.1.4"],"patched":["2.1.4"],"from":["GHSA-27vq-hv74-7cqp"],"provenance":"source"}],"summary":{"text":"SurrealDB before 2.1.4 fails to apply DEFINE TABLE ... OVERWRITE to tables defined with TYPE RELATION, so tightened PERMISSIONS clauses do not take effect even though the administrator may believe they did. An attacker who already holds a client account authorized to run queries, and who sends network requests with no user interaction, can keep reading data in those tables that the intended new permissions were meant to restrict.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:58Z"},"euvd":{"id":"EUVD-2024-55673","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-58368","published":"2026-07-18","fixed":"1.1.0","kev":false},{"cve":"CVE-2024-58367","published":"2026-07-18","fixed":"2.0.4","kev":false},{"cve":"CVE-2024-58358","published":"2026-07-18","fixed":"2.1.0","kev":false,"link":{"from":"CVE-2024-58358","to":"CVE-2024-58356","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:surrealdb","fromFixed":"2.1.0","toFixed":"2.1.4","daysApart":0},{"kind":"version-step","provenance":"source","package":"crates.io:surrealdb-core","fromFixed":"2.1.0","toFixed":"2.1.4","daysApart":0}]}},{"cve":"CVE-2024-58356","published":"2026-07-18","fixed":"2.1.4","kev":false},{"cve":"CVE-2025-71392","published":"2026-07-18","fixed":"2.2.2","kev":false,"link":{"from":"CVE-2024-58356","to":"CVE-2025-71392","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:surrealdb","fromFixed":"2.1.4","toFixed":"2.1.5","daysApart":0}]}},{"cve":"CVE-2025-71398","published":"2026-07-18","fixed":"2.2.2","kev":false,"link":{"from":"CVE-2024-58356","to":"CVE-2025-71398","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:surrealdb","fromFixed":"2.1.4","toFixed":"2.1.5","daysApart":0}]}},{"cve":"CVE-2026-49997","published":"2026-07-15","fixed":"3.1.0","kev":false}],"package":"crates.io:surrealdb"}}