Description
SurrealDB versions before 2.0.4 fail to properly enforce field permissions during SELECT, UPDATE, and DELETE operations, allowing authorized users to access unauthorized field values through various query techniques. Attackers can exploit SELECT VALUE operations, field aliasing, function arguments, WHERE clause filtering, RETURN BEFORE clauses, and SET clause references to leak protected field contents despite lacking SELECT permissions.
Published: 2026-07-18
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions before 2.0.4 do not enforce field permissions correctly on SELECT, UPDATE and DELETE operations, allowing authenticated users to read values from fields for which they lack SELECT rights. The flaw can be exploited through several query techniques, including SELECT VALUE operations, field aliasing, function arguments, where-clause filtering, RETURN BEFORE clauses and SET clause references, enabling the extraction of protected data without authorization.

Affected Systems

The vulnerability affects all installations of SurrealDB using a version earlier than 2.0.4. Any deployment of this database engine that has not been updated to the patched release is exposed, regardless of the operating environment.

Risk and Exploitability

With a CVSS score of 7.1 the vulnerability is considered high severity, but its EPSS score of less than 1% suggests a low likelihood of exploitation at present and it is not listed in the CISA KEV catalog. The attack vector requires an authenticated database user who can craft and execute queries; the flaw does not provide privilege escalation or remote code execution, but it does enable a breach of confidentiality by leaking protected field data.

Generated by OpenCVE AI on July 30, 2026 at 23:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 2.0.4 or later to apply the official patch that enforces field permissions correctly.
  • Reevaluate and restrict field-level SELECT permissions so users only have access to the fields they need.
  • Audit database queries to detect and eliminate SELECT VALUE operations, function arguments, and other techniques that can bypass field permissions.

Generated by OpenCVE AI on July 30, 2026 at 23:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 02: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

Tue, 21 Jul 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 18 Jul 2026 13:45:00 +0000

Type Values Removed Values Added
Description SurrealDB versions before 2.0.4 fail to properly enforce field permissions during SELECT, UPDATE, and DELETE operations, allowing authorized users to access unauthorized field values through various query techniques. Attackers can exploit SELECT VALUE operations, field aliasing, function arguments, WHERE clause filtering, RETURN BEFORE clauses, and SET clause references to leak protected field contents despite lacking SELECT permissions.
Title SurrealDB before 2.0.4 Improper Authorization via SELECT Permissions
Weaknesses CWE-285
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/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:47:53.305Z

Reserved: 2026-07-18T12:40:52.916Z

Link: CVE-2024-58367

cve-icon Vulnrichment

Updated: 2026-07-21T02:37:59.196Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T23:15:06Z

Weaknesses