Skip to main content

SurrealDB: Array element-level (field.*) SELECT permissions leak denied elements to record users (CVE-2026-63740)

0
Medium
Published: 08/14/2026 (08/14/2026, 19:40:48 UTC)
Source: GCVE Database
Product: surrealdb

Description

SurrealDB versions prior to 3.1.4 contain a vulnerability where array element-level SELECT permissions (field.*) are not correctly enforced for record users. This causes denied array elements to be partially leaked in query results. The issue affects only element-level permissions for record users, not field-level permissions or root/record-owner sessions. The vulnerability impacts confidentiality but does not allow data modification or privilege escalation. A fix is available in SurrealDB 3.1.4.

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.4

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/13/2026, 12:54:03 UTC

Technical Analysis

SurrealDB's enforcement of SELECT permissions on array elements (field.*) is flawed for record users. When a SELECT permission denies access to certain array elements, the filtering logic removes denied elements in forward index order, causing index shifts that leave some denied elements visible. This results in partial leakage of denied array elements in query results. The problem does not affect field-level permissions or root/record-owner sessions. The issue is fixed by removing denied elements in reverse index order, preventing index invalidation during filtering. The fix is included in SurrealDB version 3.1.4.

Potential Impact

An attacker with record user privileges can read array elements that should be hidden by element-level SELECT permissions, thereby leaking confidential data. This leakage occurs even with deny-all or per-element predicates. However, the vulnerability does not allow bypassing field-level permissions, does not affect root or record-owner sessions, does not cross namespace or database boundaries, and does not permit data modification, privilege escalation, or denial of service. The impact is limited to confidentiality loss.

Mitigation Recommendations

A patch fixing this vulnerability is available in SurrealDB version 3.1.4. Users should upgrade to this version to resolve the issue. Until patched, avoid relying on element-level (field.*) SELECT permissions to hide data from record users; instead, use field-level permissions which are correctly enforced. Alternatively, restrict record users from selecting tables that use element-level permissions.

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-8rw6-p7m8-63jp
Osv Schema Version
1.4.0
Ecosystems
["crates.io"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a7ff5f6bf8831d539880084

Added to database: 08/15/2026, 05:15:34 UTC

Last enriched: 09/13/2026, 12:54:03 UTC

Last updated: 09/27/2026, 21:40:45 UTC

Views: 37

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