CVE-2026-33380: Grafana SQL Expressions Read File From Vulnerability

MODERATE
Advisory Identifier: GHSA-gxcp-jjxh-rwp4
CVSS 6.3
CWE-552
Published
Advisory Summary

CVE-2026-33380 is a MODERATE (CVSS 6.3) sql expressions read file from vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Grafana libraries in the Go ecosystem. The issue involves sql expressions read file from disk. Remediation is available by upgrading affected packages to version 1.9.2-0.20260513165311-fb7336fc36c1.

CVE-2026-33380 at a Glance

CVE Identifier CVE-2026-33380
GHSA Identifier GHSA-gxcp-jjxh-rwp4
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product Grafana
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-33380

To remediate this vulnerability, upgrade all affected Grafana dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/grafana/grafana fixed: 1.9.2-0.20260513165311-fb7336fc36c1
Upgrade github.com/grafana/grafana to 1.9.2-0.20260513165311-fb7336fc36c1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/grafana/grafana

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33380, inspect your project dependencies for Grafana:

inspect dependencies for github.com/grafana/grafana

Analyze the terminal output to locate any version of Grafana in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.2-0.20260513165311-fb7336fc36c1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In Grafana, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-33380 Affected Grafana Versions

1 component(s)
Fixed Versions:
1.9.2-0.20260513165311-fb7336fc36c1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/grafana
Go
< 1.9.2-0.20260513165311-fb7336fc36c1
1.9.2-0.20260513165311-fb7336fc36c1

References

Frequently Asked Questions

What is CVE-2026-33380?
CVE-2026-33380 is a security vulnerability in Grafana involving SQL Expressions Read File From Disk under CWE-552: Files or Directories Accessible to External Parties.
Which Grafana versions are affected?
Affected versions include releases prior to 1.9.2-0.20260513165311-fb7336fc36c1 across affected packages: github.com/grafana/grafana.
What version fixes CVE-2026-33380?
Upgrading to 1.9.2-0.20260513165311-fb7336fc36c1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/grafana affected?
Yes, github.com/grafana/grafana is affected in releases prior to 1.9.2-0.20260513165311-fb7336fc36c1. Upgrade your dependency to 1.9.2-0.20260513165311-fb7336fc36c1 or later.
What is the CVSS score of CVE-2026-33380?
CVE-2026-33380 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2026-33380?
CVE-2026-33380 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check Go dependencies for CVE-2026-33380?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/grafana'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gxcp-jjxh-rwp4",
  "modified" : "2026-06-18T13:05:17Z",
  "published" : "2026-05-13T21:32:06Z",
  "aliases" : [ "CVE-2026-33380" ],
  "summary" : "Grafana: SQL Expressions Read File From Disk",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.2-0.20260513165311-fb7336fc36c1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33380"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/commit/fb7336fc36c14e1ff869482c5085ddb9f39e1b86"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/grafana"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2026-33380"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-18T13:05:17Z",
    "nvd_published_at" : "2026-05-13T20:16:20Z"
  }
}