Description
SurrealDB before 3.1.5 fail to apply field-level SELECT permissions to ORDER BY clauses, allowing authenticated users to leak the relative ordering of restricted field values. Attackers can issue ORDER BY queries on indexed restricted fields to recover the hidden values' sort order across records, even though the field itself returns null as intended.
Published: 2026-07-17
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions prior to 3.1.5 allow authenticated users to bypass field‑level SELECT permissions in ORDER BY clauses, exposing the relative ordering of values in restricted fields. This leakage can be used to infer sensitive information about the hidden data by observing how records sort, even though a direct query returns null. The vulnerability is a moderate severity information‑disclosure flaw identified by CWE‑863.

Affected Systems

All installations of SurrealDB older than version 3.1.5 are affected. The issue occurs when users have permission to query the database but lack permission to read specific fields; this is inferred from the description. The vulnerability is vendor‑specific to SurrealDB and does not affect other database products.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium impact, while an EPSS score of less than 1% suggests that exploitation is unlikely at this time. The vulnerability is not listed in the CISA KEV catalog. Attackers must be authenticated and able to construct ORDER BY queries on indexed fields that are protected by custom SELECT permissions. Once the query is executed, the server returns the ordering of the values, allowing the attacker to recover the relative positions of the restricted data across records.

Generated by OpenCVE AI on July 31, 2026 at 00:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.1.5 or later.
  • If an upgrade is not immediately possible, restrict ORDER BY operations on fields that have custom SELECT permissions, or remove the users’ ability to perform ORDER BY against those fields.
  • Enable detailed query logging for ORDER BY statements on sensitive fields to detect unauthorized usage until the patch is applied.

Generated by OpenCVE AI on July 31, 2026 at 00:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Fri, 17 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 17 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Description SurrealDB before 3.1.5 fail to apply field-level SELECT permissions to ORDER BY clauses, allowing authenticated users to leak the relative ordering of restricted field values. Attackers can issue ORDER BY queries on indexed restricted fields to recover the hidden values' sort order across records, even though the field itself returns null as intended.
Title SurrealDB < 3.1.5 Information Disclosure via ORDER BY
Weaknesses CWE-863
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:30.275Z

Reserved: 2026-07-16T12:13:18.733Z

Link: CVE-2026-63309

cve-icon Vulnrichment

Updated: 2026-07-17T16:40:25.592Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T00:15:05Z

Weaknesses