GHSA-vmg6-53r4-jhpw
SurrealDB versions before 2.1.4 have a vulnerability where the DEFINE TABLE ... OVERWRITE clause fails to update table definitions for tables defined with TYPE RELATION. This failure prevents changes to the PERMISSIONS clause from taking effect, potentially allowing clients to retain access to data despite intended permission restrictions. The issue may cause administrators to mistakenly believe permission changes were applied when they were not.
AI Analysis
Technical Summary
CVE-2024-58356 describes a vulnerability in SurrealDB prior to version 2.1.4 where the OVERWRITE clause in the DEFINE TABLE statement does not correctly update table definitions for tables defined with TYPE RELATION. Since table definitions include permissions, attempts to tighten permissions via OVERWRITE silently fail, leaving previous permissions intact. This can result in clients authorized to query the table continuing to access data that should have been restricted. The vulnerability is classified under CWE-276 (Incorrect Default Permissions). No known exploits are reported in the wild, and no patch links are provided in the data.
Potential Impact
Clients authorized to run queries on affected SurrealDB tables may retain access to data despite permission changes intended to restrict such access. This could lead to unauthorized data exposure due to the silent failure of permission updates. The impact is limited to permission enforcement on tables defined with TYPE RELATION and does not indicate broader compromise or data corruption.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should verify permission changes on TYPE RELATION tables through alternative means or avoid relying solely on the OVERWRITE clause to enforce permission updates.
GHSA-vmg6-53r4-jhpw
Description
SurrealDB versions before 2.1.4 have a vulnerability where the DEFINE TABLE ... OVERWRITE clause fails to update table definitions for tables defined with TYPE RELATION. This failure prevents changes to the PERMISSIONS clause from taking effect, potentially allowing clients to retain access to data despite intended permission restrictions. The issue may cause administrators to mistakenly believe permission changes were applied when they were not.
CVSS v4.0
Affected software
pkg:github/surrealdb/surrealdbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-58356 describes a vulnerability in SurrealDB prior to version 2.1.4 where the OVERWRITE clause in the DEFINE TABLE statement does not correctly update table definitions for tables defined with TYPE RELATION. Since table definitions include permissions, attempts to tighten permissions via OVERWRITE silently fail, leaving previous permissions intact. This can result in clients authorized to query the table continuing to access data that should have been restricted. The vulnerability is classified under CWE-276 (Incorrect Default Permissions). No known exploits are reported in the wild, and no patch links are provided in the data.
Potential Impact
Clients authorized to run queries on affected SurrealDB tables may retain access to data despite permission changes intended to restrict such access. This could lead to unauthorized data exposure due to the silent failure of permission updates. The impact is limited to permission enforcement on tables defined with TYPE RELATION and does not indicate broader compromise or data corruption.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should verify permission changes on TYPE RELATION tables through alternative means or avoid relying solely on the OVERWRITE clause to enforce permission updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-vmg6-53r4-jhpw
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2024-58356"]
- Ecosystems
- []
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a5ba17f44ab8fbf7c789e6a
Added to database: 07/18/2026, 15:53:35 UTC
Last enriched: 07/18/2026, 16:23:25 UTC
Last updated: 07/18/2026, 17:19:45 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.