Surrealdb: Duplicate Advisory: Writes in a PERMISSIONS clause bypass table permissions
Description
SurrealDB versions before 3.2.0 have a permissions bypass vulnerability where data-modifying statements embedded within PERMISSIONS clauses execute without enforcement. This allows attackers with limited permissions to write to tables they should not have access to, potentially causing unintended data writes and corruption. The advisory is a duplicate and has been withdrawn in favor of GHSA-66r2-5gwj-gxm2.
CVSS v3.1
Score 4.3medium
Affected software
Run 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
SurrealDB before version 3.2.0 contains a vulnerability (CWE-863) where data-modifying statements such as CREATE, UPDATE, DELETE, or UPSERT embedded inside PERMISSIONS clauses bypass the intended table permission enforcement. This flaw enables attackers who have permission to perform guarded operations to write to tables without proper authorization, leading to unintended data modifications and corruption. The advisory is marked as a duplicate of GHSA-66r2-5gwj-gxm2 and has been withdrawn to preserve external references.
Potential Impact
The vulnerability allows unauthorized data modification by bypassing table permission checks when data-modifying statements are placed inside PERMISSIONS clauses. This can lead to unintended writes and data corruption. There is no indication of confidentiality or availability impact. The CVSS score is 4.3 (medium severity), reflecting limited impact primarily on data integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory GHSA-66r2-5gwj-gxm2 for current remediation guidance. No official patch or fix information is provided in this advisory. Until a fix is available, restrict permissions to minimize risk and monitor for suspicious use of PERMISSIONS clauses.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6g69-7xmf-h2x7
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9c2642acd9273b49fc9be0
Added to database: 09/05/2026, 14:25:06 UTC
Last enriched: 09/07/2026, 14:23:45 UTC
Last updated: 10/01/2026, 23:09:37 UTC
Views: 20
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.
External Links
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.