Skip to main content

Duplicate Advisory: SurrealDB has bypass of field-level SELECT permissions through JSON Patch `copy` and `move` with empty `from`

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

Description

SurrealDB versions prior to 3.1.0 have a vulnerability that allows authenticated users to bypass field-level SELECT permissions via JSON Patch operations. Specifically, using UPDATE PATCH with an empty 'from' pointer in 'copy' or 'move' operations enables duplication of all record fields, including those protected by field-level permissions, into attacker-controlled destination fields. This vulnerability has been withdrawn as a duplicate advisory but remains relevant for versions before 3.1.0.

CVSS v3.1

Score 4.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/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:09:20 UTC

Technical Analysis

SurrealDB before version 3.1.0 contains a field-level permission bypass vulnerability (CWE-863) in its JSON Patch implementation. Authenticated users can exploit the UPDATE PATCH method with 'copy' or 'move' operations that have an empty 'from' pointer to duplicate all fields of a record, including those normally restricted by field-level SELECT permissions, into fields they control. This effectively allows unauthorized reading of protected data fields. The advisory is a duplicate of GHSA-fpxg-5xmv-922m and has been withdrawn to preserve external references.

Potential Impact

The vulnerability allows an authenticated user to read data from fields that should be protected by field-level SELECT permissions by duplicating those fields into accessible locations. This results in unauthorized disclosure of sensitive information. There is no impact on data integrity or availability reported. The CVSS score is 4.3 (medium severity), indicating limited impact confined to confidentiality with low attack complexity and requiring privileges.

Mitigation Recommendations

A fixed version is SurrealDB 3.1.0 or later. Users should upgrade to version 3.1.0 or above to remediate this vulnerability. Since no patch links are provided in this advisory, users should consult the vendor advisory GHSA-fpxg-5xmv-922m for official remediation guidance. No additional mitigations are indicated.

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-8pr5-wpg9-2h74
Osv Schema Version
1.4.0
Ecosystems
["crates.io"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a9c2648acd9273b49fc9dd1

Added to database: 09/05/2026, 14:25:12 UTC

Last enriched: 09/07/2026, 14:09:20 UTC

Last updated: 10/04/2026, 06:45:23 UTC

Views: 21

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