---
title: "CVE-2024-9264: Grafana Command Injection And Local File Inclusion Via Sql Expressions"
url: https://erroneo.us/security/cve/CVE-2024-9264/
description: "CVE-2024-9264 (github.com/grafana/grafana (Go)): The SQL Expressions experimental feature of Grafana allows for the evaluation of duckdb queries containing…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-10-18
date_modified: 2025-03-14
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-9264"
kev: false
cvss: 9.4
epss: 0.97138
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-9264: Grafana Command Injection And Local File Inclusion Via Sql Expressions

**Signal:** High exploit likelihood. EPSS ranks it in the top 5% of all CVEs for likely exploitation in the next 30 days. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 97.1% , percentile 99.9: FIRST’s model estimates a 97.1% chance of exploitation activity in the next 30 days, higher than 99.9% of all scored CVEs (very high). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes github.com/grafana/grafana (Go) >= 11.0.0, <= 11.0.6, fixed in 11.0.6+security-01 ; github.com/grafana/grafana (Go) >= 11.1.0, <= 11.1.7, fixed in 11.1.7+security-01 ; github.com/grafana/grafana (Go) >= 11.2.0, <= 11.2.2, fixed in 11.2.2+security-01 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `github.com/grafana/grafana` >= 11.0.0, <= 11.0.6 → fixed: 11.0.6+security-01
- Go `github.com/grafana/grafana` >= 11.1.0, <= 11.1.7 → fixed: 11.1.7+security-01
- Go `github.com/grafana/grafana` >= 11.2.0, <= 11.2.2 → fixed: 11.2.2+security-01

## Affected products (CVE record)

- Grafana Grafana: 11.0.0 < 11.0.5, 11.1.0 < 11.1.6, 11.2.0 < 11.2.1, 11.0.0 < 11.0.6, 11.1.0 < 11.1.7, 11.2.0 < 11.2.2

## Severity

- GRAFANA CVSS 4.0: 9.4 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- GRAFANA CVSS 3.1: 9.9 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 4.0: 9.4 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 97.14% probability of exploitation activity in the next 30 days; percentile 99.9.

## Sources

- [GitHub Advisory GHSA-q99m-qcv4-fpm7](https://github.com/advisories/GHSA-q99m-qcv4-fpm7)
- [CVE.org record CVE-2024-9264](https://www.cve.org/CVERecord?id=CVE-2024-9264)
- [NVD entry CVE-2024-9264](https://nvd.nist.gov/vuln/detail/CVE-2024-9264)
- [grafana.com](https://grafana.com/security/security-advisories/cve-2024-9264/)
- [security.netapp.com](https://security.netapp.com/advisory/ntap-20250314-0007/)
- [github.com](https://github.com/grafana/grafana/pull/81666)
- [grafana.com](https://grafana.com/blog/2024/10/17/grafana-security-release-critical-severity-fix-for-cve-2024-9264)

---
Source page: https://erroneo.us/security/cve/CVE-2024-9264/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
