CVE-2024-9264
Grafana SQL Expressions allow for remote code execution
- Published
- Oct 18, 2024
- Updated
- Mar 14, 2025
- Assigning CNA
- GRAFANA
- Evidence observed
- Aug 8, 2026
Primary CVSS
nvd · CVSS 4.0
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:XHigh · next 30 days
- Percentile
- 99.9%
- Model date
- Oct 13, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
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.
Sources
grafana/CVE-2024-9264
Grafana SQL Expressions Remote Code Execution (CVE-2024-9264)
Vulhub vulnerability labsDeclared conditions
- lab image version: vulhub/grafana:11.0.0(grafana/CVE-2024-9264/docker-compose.yml:services.grafana.image)
http/cves/2024/CVE-2024-9264.yaml
Nuclei TemplatesDeclared conditions
- network: http($.protocol_keys)
- verification: regex,word($.matchers[*].type)
modules/exploits/multi/http/grafana_sql_expressions_rce_cve_2024_9264.rb
Metasploit Framework modulesDeclared conditions
- platform: Unix($.exploit_multi/http/grafana_sql_expressions_rce_cve_2024_9264.platform)
- verification: check_declared($.exploit_multi/http/grafana_sql_expressions_rce_cve_2024_9264.check)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.