Description
SurrealDB versions before 3.1.0 contain a field-level SELECT permission bypass vulnerability in indexed COUNT fast paths. Attackers can execute COUNT queries on indexed fields with field-level SELECT restrictions to confirm or recover restricted field values through repeated guesses.
Published: 2026-07-20
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions prior to 3.1.0 allow attackers to bypass field-level SELECT permissions by using the indexed COUNT fast path. When a COUNT query is issued on a field that is normally restricted, the database returns a count that can be used to infer the presence or absence of records and, through repeated guessing, to recover the actual value of the restricted field. This effectively lets an adversary read protected data, violating confidentiality and bypassing the intended permission model, as defined by CWE-863.

Affected Systems

All installations of SurrealDB running a version earlier than 3.1.0 are affected. The flaw exists in the database engine’s handling of COUNT queries on indexed fields; therefore any instance exposing this functionality, regardless of network exposure or user role, may be vulnerable.

Risk and Exploitability

The vulnerability has a CVSS score of 5.3, indicating moderate severity, and an EPSS score of less than 1 %, indicating a low likelihood of exploitation at this time. The flaw is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker would need to reach the database query interface, either through a trusted client or by exploiting a misconfigured or exposed endpoint, to execute the exploit with no special privileges. Based on the description, it can be inferred that the attack simply involves sending specially crafted COUNT statements, making it straightforward to automate and not requiring code execution or privilege escalation.

Generated by OpenCVE AI on August 1, 2026 at 07:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.1.0 or later, which removes the vulnerable indexed COUNT path
  • If an upgrade cannot be performed immediately, restrict or disable COUNT queries on indexed fields that carry field-level SELECT restrictions
  • Implement network-level controls to limit the database to trusted hosts only, and monitor query patterns for repeated COUNT requests that may indicate enumeration attempts

Generated by OpenCVE AI on August 1, 2026 at 07:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Mon, 20 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description SurrealDB versions before 3.1.0 contain a field-level SELECT permission bypass vulnerability in indexed COUNT fast paths. Attackers can execute COUNT queries on indexed fields with field-level SELECT restrictions to confirm or recover restricted field values through repeated guesses.
Title SurrealDB before 3.1.0 Field Permission Bypass via Indexed COUNT
Weaknesses CWE-863
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 5.3, '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'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:38.097Z

Reserved: 2026-07-18T12:26:19.866Z

Link: CVE-2026-63742

cve-icon Vulnrichment

Updated: 2026-07-20T12:53:45.425Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T07:30:13Z

Weaknesses