CVE-2026-63740

SurrealDB before 3.1.4 Array Element Permission Bypass

Published Jul 20, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
SurrealDB versions before 3.1.4 fail to properly enforce SELECT permissions on array elements (field.*) for record users, leaking denied array elements instead of hiding them. Attackers with record scope access can read array elements that element-level permissions should deny by exploiting incorrect index handling during permission filtering.

Analysis

AI-generated

Technical impact

SurrealDB versions prior to 3.1.4 allow unauthorized disclosure of array elements that should be protected by SELECT permissions. The flaw results from incorrect handling of permission filtering when array indices are accessed, causing denied entries to be returned instead of being omitted. This permits an attacker to retrieve confidential data that belongs to another user or role. The vulnerability is classified as a permission bypass following CWE‑863 standard.

Affected Systems

The affected product is SurrealDB by SurrealDB Inc. The vulnerability exists in all releases earlier than version 3.1.4. Upgrading to v3.1.4 or later removes the flaw.

Risk and Exploitability

With a CVSS score of 7.1 the risk is considered high. The EPSS score is < 1%, indicating a very low but non‑zero likelihood of exploitation, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is through record‑scope access; an attacker who can issue SELECT queries against a record with array fields can exploit the mis‑indexed permission checks to read elements that should be hidden. Once the record scope is obtained, the attacker can read any denied array element, compromising confidentiality for the affected applications.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.1.4 or newer, which removes the permission filtering bug.
  • Revoke or restrict record‑scope SELECT permissions for roles that do not require array element access until the patch is applied.
  • Audit existing permission configurations to ensure denied array elements are properly protected and adjust settings to enforce stricter permissions on array fields.

Generated by OpenCVE AI on July 30, 2026 at 19:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8rw6-p7m8-63jp SurrealDB: Array element-level (field.*) SELECT permissions leak denied elements to record users
History
Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SurrealDB versions before 3.1.4 fail to properly enforce SELECT permissions on array elements (field.*) for record users, leaking denied array elements instead of hiding them. Attackers with record scope access can read array elements that element-level permissions should deny by exploiting incorrect index handling during permission filtering.
Title SurrealDB before 3.1.4 Array Element Permission Bypass
Weaknesses CWE-863
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:05 AM
Reserved
Jul 18, 2026, 12:19 PM
Status
Analyzed
Published
Jul 20, 2026, 12:19 PM
Modified
Jul 22, 2026, 3:48 PM