CVE-2024-9264: Grafana SQL Expressions allow for remote code execution
CVE-2024-9264 affects 15 listed versions of Grafana Labs Grafana in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Grafana Labs Grafana
15 of 250 listed versions are affected. Fixed in 11.2.2, 11.1.7, 11.0.6. The newest release, 13.3.2, is not affected.
11.2.1+security-01 11.1.6+security-01 11.1.6 11.1.5 11.1.4 11.1.3 11.1.2 11.1.1 11.0.5+security-01 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by Grafana on 18 October 2024. Last changed 4 November 2026. Exploit code is public (Metasploit or Nuclei).
Sources
Check one version you run: look CVE-2024-9264 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.