CVE-2026-33380

SQL Expressions Read File From Disk

Published May 13, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability in SQL Expressions allows an authenticated attacker to read arbitrary files from the Grafana server's filesystem. Only instances with the sqlExpressions feature toggle enabled are vulnerable.

Analysis

AI-generated

Technical impact

A vulnerability in Grafana’s SQL Expressions feature allows an authenticated user to instruct the server to read and return the contents of any file on the Grafana host’s disk. This flaw is a path traversal vulnerability (CWE-552) and also involves an SQL injection weakness (CWE-89) that allows arbitrary file read. The attack can expose confidential data such as configuration files or local credentials.

Affected Systems

Affected systems include installations of Grafana OSS. No specific version range is listed in the advisory, so all instances enabling the sqlExpressions toggle are potentially vulnerable. The vulnerability is only exploitable on instances where the toggle is turned on.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The EPSS score of 0.00012 indicates a low but nonzero exploitation probability, and the issue is not listed in CISA’s KEV catalog. The likely attack vector is inferred: an attacker requires a valid authenticated Grafana session and the sqlExpressions feature toggle must be enabled. Once authenticated, the attacker can read arbitrary files, potentially exposing sensitive data or aiding further exploitation of the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grafana OSS to a version that contains the SQL Expressions fix
  • If an upgrade cannot be performed immediately, disable the sqlExpressions feature toggle to eliminate the vulnerability
  • Restrict Grafana authentication to trusted users only and review permissions to limit access to sensitive files
  • Monitor Grafana logs for unusual file read requests via SQL expressions

Generated by OpenCVE AI on May 28, 2026 at 02:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gxcp-jjxh-rwp4 Grafana: SQL Expressions Read File From Disk
History
Type Values Removed Values Added
CPEs cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-552
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Grafana
Grafana grafana
Vendors & Products Grafana
Grafana grafana
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Description A vulnerability in SQL Expressions allows an authenticated attacker to read arbitrary files from the Grafana server's filesystem. Only instances with the sqlExpressions feature toggle enabled are vulnerable.
Title SQL Expressions Read File From Disk
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-552

    Files or Directories Accessible to External Parties

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GRAFANA
Published
Updated
Aug 27, 2026, 5:22 PM
Reserved
Mar 19, 2026, 7:55 AM
Status
Analyzed
Published
May 13, 2026, 8:16 PM
Modified
Oct 26, 2026, 2:10 PM
Severity
Moderate
Public date
May 13, 2026, 7:28 PM