CVE-2024-9264
Published: 18 October 2024
Summary
CVE-2024-9264 is a critical-severity Code Injection (CWE-94) vulnerability in Grafana Grafana. Its CVSS base score is 9.4 (Critical).
Operationally, ranked in the top 0.1% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
Grafana's SQL Expressions experimental feature is affected by CVE-2024-9264, a command injection and local file inclusion vulnerability that stems from insufficient sanitization of user-supplied input before it is passed to the duckdb query engine. The issue is present in Grafana when this optional feature is enabled and requires the duckdb binary to be located in the process PATH, a condition that does not exist in default distributions.
Any authenticated user holding the VIEWER role or higher can exploit the flaw over the network to achieve arbitrary command execution and local file reads. The vulnerability is tracked under CWE-94 and CWE-77 and is rated 9.4 under CVSS 4.0, reflecting the absence of required user interaction and the broad impact on confidentiality, integrity, and availability.
The Grafana security advisory at grafana.com/security/security-advisories/cve-2024-9264/ and the NetApp advisory NTAP-20250314-0007 describe the conditions required for exploitation and outline mitigation steps for operators running affected versions.
The associated EPSS score is currently 0.9405, equal to its recorded peak, indicating substantial exploitation likelihood without evidence of a post-disclosure climb from a low baseline.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-3110
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.
Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.
Validates inputs used in dynamic code generation to block injected directives.
Directly prevents execution of attacker-supplied code written into data memory regions.