CVE-2026-63309 Details
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.
A vulnerability exists in SurrealDB versions 3.0.0 prior to 3.1.5, where field-level SELECT permissions are not properly enforced in ORDER BY clauses. This oversight allows authenticated users to infer the relative ordering of values in restricted fields. Attackers can exploit this by issuing ORDER BY queries on indexed fields that are meant to be hidden, thereby revealing the sort order of the concealed values across different records, even though the actual field values are correctly returned as null.
Users can upgrade to SurrealDB version 3.1.5, where this vulnerability has been patched. Instructions for downloading this version are available on the SurrealDB GitHub Releases page. For users unable to upgrade, it is advised to avoid indexing fields that are restricted by SELECT permissions, or to use namespace/database isolation as a trust boundary.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 17, 2026CISA-ADP
Assessed Jul 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/releases/tag/v3.1.5 | [email protected] | Release NotesVendor |
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h4h3-3rfj-x6fq | [email protected] | AdvisoryRemedyVendor |
| https://www.vulncheck.com/advisories/surrealdb-information-disclosure-via-order-by | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SurrealDB | >= 3.0.0, < 3.1.5 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 17, 2026 | New CVE Received | [email protected] |
| Jul 17, 2026 | CVE Modified | CISA-ADP |
Volerion