Duplicate Advisory: SurrealDB: Array element-level (field.*) SELECT permissions leak denied elements to record users
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
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 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.
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 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.