CVE-2024-58367 Details
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.
A vulnerability exists in SurrealDB versions prior to 2.0.4, where the database fails to properly enforce field permissions during SELECT, UPDATE, and DELETE operations. This oversight allows authorized users to access unauthorized field values through various query techniques. Exploitation can occur via SELECT VALUE operations, field aliasing, function arguments, WHERE clause filtering, RETURN BEFORE clauses, and SET clause references, enabling the leakage of protected field contents despite the absence of SELECT permissions.
Users should update SurrealDB to version 2.0.4 or later, where this vulnerability has been patched. For those unable to update, it is recommended to restrict read access to fields at the table level and to carefully manage UPDATE and DELETE permissions to avoid unauthorized access to record contents.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-9722-9j67-vjcr | [email protected] | Vendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-improper-authorization-via-select-permissions | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-285 | Improper Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| surrealdb surrealdb | < 2.0.4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 27, 2026 | CVE Translated | [email protected] |
| Aug 13, 2026 | Initial Analysis | [email protected] |
| Jul 21, 2026 | CVE Modified | CISA-ADP |
| Jul 18, 2026 | New CVE Received | [email protected] |