Duplicate Advisory: SurrealDB: Indexed ORDER BY leaks the value ordering of a SELECT-restricted field
Description
SurrealDB versions 3.0.0 and later before 3.1.5 have a vulnerability where field-level SELECT permissions are not enforced on ORDER BY clauses. This allows authenticated users to infer the relative ordering of restricted field values even though the field values themselves are returned as null.
CVSS v3.1
Score 4.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SurrealDB before version 3.1.5 fails to apply field-level SELECT permissions to ORDER BY clauses in queries. Authenticated users can exploit this by issuing ORDER BY queries on indexed restricted fields to leak the relative sort order of those hidden values across records. Although the restricted field values are returned as null, the ordering information is exposed, potentially revealing sensitive data ordering.
Potential Impact
The vulnerability allows an authenticated user to infer the relative ordering of restricted field values that should be hidden by SELECT permissions. This results in a confidentiality breach of data ordering information, though the actual field values remain undisclosed. There is no impact on data integrity or availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links are provided and no official fix is mentioned, users should monitor vendor communications for updates. Until a fix is available, avoid relying on field-level SELECT permissions to protect sensitive ordering information or restrict authenticated user query capabilities accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2f98-6626-h2p2
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9ad523acd9273b49b69573
Added to database: 09/04/2026, 14:26:43 UTC
Last enriched: 09/07/2026, 15:38:09 UTC
Last updated: 10/04/2026, 04:40:56 UTC
Views: 67
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.