Read the docs
TI-2024-08600 Aliases CVE-2024-9264GHSA-q99m-qcv4-fpm7

Grafana SQL Expressions allow for remote code execution

Priority CRITICAL 87CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

The SQL Expressions experimental feature of Grafana allows for the evaluation of `duckdb` queries containing user input. These queries are insufficiently sanitized before being passed to `duckdb`, leading to a command injection and local file inclusion vulnerability. Any user with the VIEWER or higher permission is capable of executing this attack. The `duckdb` binary must be present in Grafana's $PATH for this attack to function; by default, this binary is not installed in Grafana distributions.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.97553 99th percentileScored 2026-11-07
Fix Fixed Grafana (Grafana): 11.0.5, 11.1.6, 11.2.1 +3github.com/grafana/grafana (Go): 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
GrafanaGrafana11.0.0 to before 11.0.5; 11.1.0 to before 11.1.6; 11.2.0 to before 11.2.1; 11.0.0 to before 11.0.6; 11.1.0 to before 11.1.7; 11.2.0 to before 11.2.211.0.5, 11.1.6, 11.2.1, 11.0.6, 11.1.7, 11.2.2Patch availableCNA
—github.com/grafana/grafana (Go)11.0.0 to before 11.0.6+security-0111.0.6+security-01Patch availableGHSA-q99m-qcv4-fpm7
—github.com/grafana/grafana (Go)11.1.0 to before 11.1.7+security-0111.1.7+security-01Patch availableGHSA-q99m-qcv4-fpm7
—github.com/grafana/grafana (Go)11.2.0 to before 11.2.2+security-0111.2.2+security-01Patch availableGHSA-q99m-qcv4-fpm7
  • Grafana VendorGrafana Affected 11.0.0 to before 11.0.5; 11.1.0 to before 11.1.6; 11.2.0 to before 11.2.1; 11.0.0 to before 11.0.6; 11.1.0 to before 11.1.7; 11.2.0 to before 11.2.2 Fixed in 11.0.5, 11.1.6, 11.2.1, 11.0.6, 11.1.7, 11.2.2 Patch available CNA
  • github.com/grafana/grafana (Go) Vendor— Affected 11.0.0 to before 11.0.6+security-01 Fixed in 11.0.6+security-01 Patch available GHSA-q99m-qcv4-fpm7
  • github.com/grafana/grafana (Go) Vendor— Affected 11.1.0 to before 11.1.7+security-01 Fixed in 11.1.7+security-01 Patch available GHSA-q99m-qcv4-fpm7
  • github.com/grafana/grafana (Go) Vendor— Affected 11.2.0 to before 11.2.2+security-01 Fixed in 11.2.2+security-01 Patch available GHSA-q99m-qcv4-fpm7

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:grafana:grafana:11.0.0:*:*:*:*:*:*:*11.0.0VulnerableGrafana
  • cpe:2.3:a:grafana:grafana:11.0.0:*:*:*:*:*:*:* Versions 11.0.0 Vulnerable ·Grafana

Remediation

  • Fix · CNA Grafana (Grafana) Fixed in 11.0.5, 11.1.6, 11.2.1, 11.0.6, 11.1.7, 11.2.2
  • Fix · GHSA-q99m-qcv4-fpm7 github.com/grafana/grafana (Go) Fixed in 11.0.6+security-01 Advisory →
  • Fix · GHSA-q99m-qcv4-fpm7 github.com/grafana/grafana (Go) Fixed in 11.1.7+security-01 Advisory →
  • Fix · GHSA-q99m-qcv4-fpm7 github.com/grafana/grafana (Go) Fixed in 11.2.2+security-01 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Critical. Red Hat's page for this CVE →

Not affected: 4 products
  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Storage 3

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-9264
  2. 2026-10-03 Alias added: GHSA-q99m-qcv4-fpm7
  3. 2026-11-03 CISA SSVC decision points changed

References

  • TI-2021-16611 Snapshot authentication bypass in grafana KEVCVSS 3.1CRITICAL 9.8
  • TI-2021-19604 Grafana path traversal KEVCVSS 3.1HIGH 7.5
  • TI-2023-02931 Authentication bypass by spoofing in Grafana CVSS 3.1CRITICAL 9.8
  • TI-2020-10491 The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control… CVSS 3.1HIGH 8.2
  • TI-2025-03662 Open redirect in Grafana CVSS 3.1HIGH 7.6
  • TI-2022-13141 Stored XSS in Grafana's Unified Alerting CVSS 3.1HIGH 8.7
See all 103 →

Sources