Surrealdb core: SurrealDB: Writes in a PERMISSIONS clause bypass table permissions (CVE-2026-63733)
Description
SurrealDB versions prior to 3.2.0 contain a vulnerability where a PERMISSIONS clause that includes data-modifying statements can bypass table write permissions. This allows users with permission to perform an operation guarded by such a clause to write to tables they normally cannot modify. The issue is limited to permission clauses that contain write operations; read-only permission clauses are unaffected. The vulnerability does not allow privilege escalation beyond the caller's namespace or database, nor does it allow reading hidden data. Versions 3.2.0 and later have patched this issue by enforcing that permission clauses must be read-only and blocking writes during permission evaluation.
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
In SurrealDB versions before 3.2.0, a PERMISSIONS clause containing data-modifying statements (e.g., CREATE, UPDATE) is evaluated with permission enforcement disabled. This flaw allows the clause to perform writes to tables even if the caller lacks write permissions on those tables. For example, a PERMISSIONS clause for updating a 'post' table could create records in a 'log' table without the caller having permission to write to 'log'. The clause is evaluated once per matched record, potentially causing multiple unauthorized writes. The vulnerability does not permit escaping the caller's namespace or database, nor does it allow root-level actions or data disclosure. The issue is fixed in SurrealDB 3.2.0 by rejecting permission clauses that contain writes and blocking writes during permission evaluation at runtime.
Potential Impact
An attacker with permission to perform an operation guarded by a vulnerable PERMISSIONS clause can write to tables they normally cannot modify within their own database namespace. This can lead to unauthorized data modification, unintended event triggers, cascades, or data corruption. The vulnerability does not allow privilege escalation beyond the caller's namespace or database, nor does it allow reading of hidden data or performing root-level actions. The impact is limited to integrity violations within the affected database.
Mitigation Recommendations
A fix is available in SurrealDB version 3.2.0 and later, which enforces that PERMISSIONS clauses are read-only and blocks any writes during permission evaluation. Users should upgrade to version 3.2.0 or later to remediate this vulnerability. For those unable to patch immediately, review all PERMISSIONS clauses and remove any that contain data-modifying statements such as CREATE, UPDATE, DELETE, RELATE, INSERT, or UPSERT. Additionally, restrict who can define schema and vet imported data to prevent introduction of malicious permission clauses.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-66r2-5gwj-gxm2
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63733"]
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9c2642acd9273b49fc9bde
Added to database: 09/05/2026, 14:25:06 UTC
Last enriched: 09/07/2026, 14:23:52 UTC
Last updated: 10/21/2026, 13:20:23 UTC
Views: 49
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.