Back to list

SurrealDB: Indexed ORDER BY leaks the value ordering of a SELECT-restricted field — GHSA-H4H3-3RFJ-X6FQ

GitHub · GitHub · GHSA-H4H3-3RFJ-X6FQ

ID
GHSA-H4H3-3RFJ-X6FQ
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
4.3

Summary

A field can be hidden from a user with a field-level SELECT permission (`DEFINE FIELD code ON secret PERMISSIONS FOR select WHERE owner = $auth.id`). When that field is indexed, a record user who cannot read it could still recover the relative ordering of its values across every record by issuing `ORDER BY <field>`: the field came back `null` as intended, but the rows were returned in the hidden values' true sorted…

Product

rust: surrealdb

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories