CVE-2026-63309

SurrealDB < 3.1.5 Information Disclosure via ORDER BY

Published Jul 17, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
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 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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:07 PM
Reserved
Jul 16, 2026, 12:13 PM
Status
Deferred
Published
Jul 17, 2026, 5:17 PM
Modified
Oct 24, 2026, 1:10 PM