Skip to main content

Duplicate Advisory: SurrealDB: Array element-level (field.*) SELECT permissions leak denied elements to record users

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

Description

SurrealDB versions up to 3.1.3 contain a vulnerability where SELECT permissions on array elements (field.*) are not properly enforced for record users. This flaw causes denied array elements to be leaked instead of hidden, allowing attackers with record scope access to read data they should not be able to access. The issue arises from incorrect index handling during permission filtering. This vulnerability has a CVSS score of 6.5, indicating a high severity impact on confidentiality without affecting integrity or availability.

CVSS v3.1

Score 6.5medium

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

Affected software

crates.ioghsa
surrealdb
Affected versions
<=3.1.3

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, 10:07:14 UTC

Technical Analysis

SurrealDB versions <=3.1.3 fail to correctly enforce SELECT permissions on array elements at the element level for record users. Due to improper index handling during permission filtering, users with record scope access can read array elements that should be denied by element-level permissions. This results in unauthorized data disclosure of array elements that should be hidden. The vulnerability is tracked as CWE-863 (Incorrect Authorization) and has a CVSS 3.1 base score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N). No known exploits are reported in the wild. The advisory is a duplicate of GHSA-8rw6-p7m8-63jp and affects the crates.io ecosystem.

Potential Impact

An attacker with record scope access can bypass element-level SELECT permissions on array fields, leading to unauthorized disclosure of sensitive array elements. The confidentiality of data is compromised, but integrity and availability remain unaffected. This could expose sensitive information to unauthorized users within the application context.

Mitigation Recommendations

A fixed version 3.1.4 or later should be used to remediate this vulnerability. Since the advisory states versions up to 3.1.3 are affected, upgrading to 3.1.4 or newer is recommended. No patch links were provided in the input, so users should consult the official SurrealDB vendor advisory or repository for the official fix. There is no indication that this vulnerability is mitigated by configuration or other means.

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-j6mj-v752-pp4x
Osv Schema Version
1.4.0
Ecosystems
["crates.io"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a9c2648acd9273b49fc9e6b

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

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

Last updated: 10/01/2026, 23:09:48 UTC

Views: 30

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