Skip to main content

Surrealdb: Duplicate Advisory: Writes in a PERMISSIONS clause bypass table permissions

0
Medium
Published: 07/20/2026 (07/20/2026, 12:33:08 UTC)
Source: GCVE Database
Product: surrealdb

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Affected software

crates.ioghsa
surrealdb

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 14:23:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses