# CVE-2024-9264: Grafana SQL Expressions allow for remote code execution

- Severity: Critical 9.4 (CVSS:4.0, scored by GRAFANA) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 97.6%, higher than 99% of CVEs (2026-12-01)
- Published: 2024-10-18T03:20:52.489Z
- Modified: 2026-11-04T01:17:18.550Z
- Also known as: GHSA-q99m-qcv4-fpm7, BIT-GRAFANA-2024-9264, GO-2024-3215
- Related: CGA-3mqw-v2g6-57gg
- Weaknesses: CWE-77, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GRAFANA

## Description

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.

(As written by CVE List.)

## Affected

- Grafana Grafana: from 11.0.0 before 11.0.5; from 11.1.0 before 11.1.6; from 11.2.0 before 11.2.1; from 11.0.0 before 11.0.6; from 11.1.0 before 11.1.7; from 11.2.0 before 11.2.2; from 11.0.0 before 11.0.5\+security-01; from 11.0.6 before 11.0.6\+security-01; from 11.1.0 before 11.1.6\+security-01; from 11.1.7 before 11.1.7\+security-01; from 11.2.0 before 11.2.1\+security-01; from 11.2.2 before 11.2.2\+security-01; and 1 more
- github.com/grafana/grafana (Go): from 11.0.0 before 11.0.6+security-01; from 11.1.0 before 11.1.7+security-01; from 11.2.0 before 11.2.2+security-01; all versions
- grafana (Bitnami): from 11.0.0 before 11.2.2

## Every score

- GRAFANA: CVSS:4.0 9.4 Critical `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 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://grafana.com/security/security-advisories/cve-2024-9264/> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20250314-0007/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-9264> (advisory, web)
- <https://github.com/grafana/grafana/pull/81666> (fix, web)
- <https://github.com/grafana/grafana> (package)
- <https://grafana.com/blog/2024/10/17/grafana-security-release-critical-severity-fix-for-cve-2024-9264> (web)
- <https://grafana.com/security/security-advisories/cve-2024-9264> (web)
- <https://security.netapp.com/advisory/ntap-20250314-0007> (web)
- <https://github.com/advisories/GHSA-q99m-qcv4-fpm7> (advisory)

## Sources

- CVE List: [CVE-2024-9264](https://www.cve.org/CVERecord?id=CVE-2024-9264), CVE Terms of Use, modified 2026-11-04
- GitHub Advisory Database: [GHSA-q99m-qcv4-fpm7](https://github.com/advisories/GHSA-q99m-qcv4-fpm7), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-3215](https://pkg.go.dev/vuln/GO-2024-3215), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-9264](https://nvd.nist.gov/vuln/detail/CVE-2024-9264), Public domain, modified 2026-11-04
- Bitnami Vulnerability Database: [BIT-GRAFANA-2024-9264](https://osv.dev/vulnerability/BIT-GRAFANA-2024-9264), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-9264 · Whole record: https://cve.day/CVE-2024-9264.json · Rebuilt by cve.day 2026-11-25T22:58:46.900Z
