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.
Severity (CVSS)
| Base score | 5.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-863 — Incorrect Authorization
Affected products
| Vendor | Product | Versions |
|---|---|---|
| surrealdb | surrealdb | 3.0.0 to <3.1.5; 3.1.5 |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h4h3-3rfj-x6fq (vendor-advisory)
- https://github.com/surrealdb/surrealdb/releases/tag/v3.1.5 (release-notes)
- https://www.vulncheck.com/advisories/surrealdb-information-disclosure-via-order-by (third-party-advisory)
Generated from the official CVE List on 18 Jul 2026 07:00 UTC.