CVE-2024-9264
CriticalPublic exploitGrafana Command Injection And Local File Inclusion Via Sql Expressions
Published Oct 18, 2024 · Updated Oct 8, 2026 · Also known as BIT-grafana-2024-9264, GHSA-q99m-qcv4-fpm7, GO-2024-3215, TR-24-1733, UBUNTU-CVE-2024-9264
Key Facts
Patch immediately- CVE-2024-9264 is a critical-severity vulnerability (CVSS 9.4 v4) affecting Grafana, grafana-11.0 (chainguard), grafana-fips-11.0 (chainguard) and 12 more products.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 97% probability of exploitation in the next 30 days.
- Fixed versions are available, including firewalld-prometheus-config 0.1-150000.3.62.2, github.com/grafana/grafana 11.0.6+security-01, github.com/grafana/grafana 11.1.7+security-01.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v4
9.4
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:X
EPSS (30-day exploit likelihood)
97%
Higher than 99.8% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2024-9264 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Affected Products
38 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GrafanaGrafana | 11.0.0, >= 11.0.0 | 11.0.7-r0 |
| grafana-11.0chainguard | See advisory | 11.0.7-r0 |
| grafana-fips-11.0chainguard | See advisory | 11.0.7-r0 |
| grafana-fips-12.0chainguard | See advisory | 12.0.10-r6 |
| grafana-fips-12.1chainguard | See advisory | 12.1.10.01-r3 |
Patched Releases
firewalld-prometheus-config
0.1-150000.3.62.2
github.com/grafana/grafana
11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01
golang-github-prometheus-alertmanager
0.26.0-1.31.2
golang-github-prometheus-node_exporter
1.9.1-1.36.2
golang-github-prometheus-prometheus
2.53.4-1.60.2, 2.53.4-150000.3.62.2
govulncheck-vulndb
0.0.20241030T212825-1.1, 0.0.20241030T212825-150000.1.9.1, 0.0.20241104T154416-5.1
Grafana
11.0.7-r0, 11.2.2, 11.3.0-1.1, 11.5.5-1.79.2, 11.5.5-150000.1.79.1, 11.5.5-150200.3.72.2, 11.6.11-bp160.1.1, 11.0.5, 11.0.6, 11.1.6, 11.1.7, 11.2.1
grafana-11.0
11.0.7-r0
grafana-11.4
11.4.3-r0
grafana-fips-11.0
11.0.7-r0
grafana-fips-12.0
12.0.10-r6
grafana-fips-12.1
12.1.10.01-r3
grafana-fips-13.1
13.1.0-r0
prometheus-blackbox_exporter
0.26.0-1.27.1, 0.26.0-150000.1.27.1
release-notes-susemanager
4.3.15.2-150400.3.133.1
Timeline
Publicly disclosed
Oct 18, 2024
Last updated
Oct 8, 2026
Weakness Type
- CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2024/9xxx/CVE-2024-9264.json
- advisoryhttps://grafana.com/security/security-advisories/cve-2024-9264/
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-9264
- advisoryhttps://ubuntu.com/security/CVE-2024-9264
FAQ
Common Questions.
The SQL Expressions experimental feature of Grafana allows for the evaluation of duckdb queries containing user input.
Affected: Grafana versions 11.0.0, >= 11.0.0; grafana-11.0 (chainguard); grafana-fips-11.0 (chainguard), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including firewalld-prometheus-config 0.1-150000.3.62.2, github.com/grafana/grafana 11.0.6+security-01, github.com/grafana/grafana 11.1.7+security-01.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2024-9264 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo