# CVE-2024-9264

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.

- Page: https://www.vulneraibility.com/cve/CVE-2024-9264
- CVSS: 9.9
- Known exploited: not in CISA KEV as of our last sync
- EPSS: 97.55% (percentile 99.9)
- Public exploit code: 1 Metasploit module · 14 GitHub proofs of concept · 1 Nuclei template (first 2024-10-19)
- CISA SSVC: exploitation poc, automatable no, technical impact total (assessed 2024-11-01)
- Weakness: CWE-94
- Published: 2024-10-18

## Affected versions

- Grafana: affected >= 11.0.0 and < 11.0.5; >= 11.1.0 and < 11.1.6; >= 11.2.0 and < 11.2.1; >= 11.0.0 and < 11.0.6; >= 11.1.0 and < 11.1.7; >= 11.2.0 and < 11.2.2

A version outside these ranges is not a statement that it is unaffected.

## References

- [other] https://grafana.com/security/security-advisories/cve-2024-9264/
- [other] https://security.netapp.com/advisory/ntap-20250314-0007/

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
