Advisory record · GHSA-h4h3-3rfj-x6fq

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

CVSS 5.3 MediumEPSS 0.0033 · 26th percentile

Published by the GitHub Advisory Database at 19 Jun 2026, 22:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
surrealdbcrates.io>=3.0.0, <3.1.53.1.5
Identifiers
GHSA-h4h3-3rfj-x6fq · CVE-2026-63309
Weakness (CWE)
CWE-200 · CWE-863
Published
19 Jun 2026
Updated
4 Nov 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

SurrealDB versions 3.0.0 up to but not including 3.1.5 are affected. A record user with table SELECT access can hide a field from themselves with a field-level SELECT permission, yet still learn the relative ordering of that field's values across other users' records by running ORDER BY on the field when it has an index; the value itself is returned as null. Upgrade to SurrealDB 3.1.5, which applies the field permission to ORDER BY. Users who cannot upgrade can set SURREAL_PLANNER_STRATEGY to compute-only.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 4.0 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0033, the 26th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 17 Jul 2026, 16:14 UTC Confirmed by the CVE List
  2. 31 Oct 2026, 15:18 UTC First seen by agentprime
  3. 31 Oct 2026, 15:18 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.