CVE-2024-58367
Received Received - Intake

SurrealDB Field Permission Bypass Leading to Data Leakage

Vulnerability report for CVE-2024-58367, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-18

Last updated on: 2026-07-18

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-18
Last Modified
2026-07-18
Generated
2026-07-18
AI Q&A
2026-07-18
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
surrealdb surrealdb to 2.0.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-285 The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2024-58367 is an improper authorization vulnerability in SurrealDB versions before 2.0.4. It allows authorized users to access unauthorized field values during SELECT, UPDATE, and DELETE operations. Attackers can exploit techniques like SELECT VALUE, field aliasing, function arguments, WHERE clauses, RETURN BEFORE clauses, and SET clause references to leak protected data despite lacking proper permissions.

Detection Guidance

Detecting this vulnerability requires checking SurrealDB versions and reviewing query logs for unauthorized field access attempts. Use commands like 'surreal version' to verify if your version is below 2.0.4. Monitor logs for suspicious SELECT VALUE, field aliasing, or function argument usage in queries.

Impact Analysis

This vulnerability can lead to unauthorized data exposure. Attackers with limited access may infer or retrieve restricted field values or record contents through side channels or function calls. It particularly affects systems relying on field-level permissions, potentially compromising sensitive information in backend-as-a-service setups.

Compliance Impact

This vulnerability could violate compliance requirements like GDPR or HIPAA by enabling unauthorized access to protected data. Organizations using SurrealDB versions before 2.0.4 may face legal and regulatory penalties due to improper data access controls.

Mitigation Strategies

Immediately upgrade SurrealDB to version 2.0.4 or later. If upgrading is not possible, restrict access at the table level or disable field-level permissions entirely. Avoid relying on field permissions until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2024-58367. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart