Skip to main content

Duplicate Advisory: SurrealDB: Indexed ORDER BY leaks the value ordering of a SELECT-restricted field

0
Medium
Published: 07/17/2026 (07/17/2026, 18:31:27 UTC)
Source: GCVE Database
Product: surrealdb

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Affected software

crates.ioghsa
surrealdb
Affected versions
>=3.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 15:38:09 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses