CVE-2024-9264

CVE-2024-9264 is a critical-severity vulnerability in Grafana with a CVSS 3.x base score of 9.9. Its EPSS exploit-prediction score of 98% places it in the 100th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-77.

Key facts

Description

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.

Frequently asked questions

What is 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.
How severe is CVE-2024-9264?
CVE-2024-9264 has a CVSS 3.x base score of 9.9, rated critical severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2024-9264 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 98% (100th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-9264?
CVE-2024-9264 affects Grafana. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-9264?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2024-9264 have an EU (EUVD) identifier?
Yes. CVE-2024-9264 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-3110.
When was CVE-2024-9264 published?
CVE-2024-9264 was published on 2024-10-18 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Grafana

All CVEs affecting Grafana →

Other CWE-77 (Command Injection) vulnerabilities

Browse all CWE-77 (Command Injection) vulnerabilities →