CVE-2024-58367

SurrealDB before 2.0.4 Improper Authorization via SELECT Permissions

Published Jul 18, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Github GHSA Github GHSA GHSA-9722-9j67-vjcr SurrealDB: Improper Authorization in Select Permissions
History
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:47 AM
Reserved
Jul 18, 2026, 12:40 PM
Status
Analyzed
Published
Jul 18, 2026, 2:17 PM
Modified
Oct 27, 2026, 6:10 PM