Remote code executionin Grafana.
Weaponized: a Metasploit exploit is public.
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.
- Upgrade Grafana to 11.0.5, 11.0.6, 11.1.6, 11.1.7, 11.2.1 or later, whichever matches your release line.
- Upgrade github.com/grafana/grafana (Go) to 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 26 Sep 2024CVE ID reserved by GRAFANA.
- 17 Oct 2024Metasploit module: Grafana SQL Expressions DuckDB Command Injection.
- 18 Oct 2024Published in the CVE List.
- 19 Oct 2024First public proof of concept on GitHub.
- 4 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Grafana vulnerabilities
Same weakness: Code injection
Patchminder. CVE-2024-9264: Remote code execution in Grafana. https://patchminder.com/cve/cve-2024-9264/ (accessed 5 December 2026).