CVE-2024-9264
Grafana SQL Expressions allow for remote code execution
Also known as BIT-grafana-2024-9264, GHSA-q99m-qcv4-fpm7, GO-2024-3215
Mitigation
- Upgrade github.com/grafana/grafana to one of 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01 (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/grafana/grafana (>= 11.0.0, < 11.0.6+security-01)
- Anyone running Grafana >= 11.0.0, < 11.0.5; >= 11.1.0, < 11.1.6; >= 11.2.0, < 11.2.1; >= 11.0.0, < 11.0.6; >= 11.1.0, < 11.1.7; >= 11.2.0, < 11.2.2
Vulnerability facts
- Affected
- github.com/grafana/grafana >= 11.0.0, < 11.0.6+security-01
- Fixed in
- 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 9.4 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 66.44% chance of exploitation in 30 days (percentile 99, 2026-11-26)
- CWE
- CWE-94
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/grafana/grafana | >= 11.0.0, < 11.0.6+security-01 | 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01 | osv |
| Grafana | >= 11.0.0, < 11.0.5; >= 11.1.0, < 11.1.6; >= 11.2.0, < 11.2.1; >= 11.0.0, < 11.0.6; >= 11.1.0, < 11.1.7; >= 11.2.0, < 11.2.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-9264. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-9264.md Affected: github.com/grafana/grafana >= 11.0.0, < 11.0.6+security-01 Fixed in: 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01 Steps: 1. Search this machine and project for github.com/grafana/grafana (Go), Grafana: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://security.netapp.com/advisory/ntap-20250314-0007/
- https://github.com/grafana/grafana
- https://grafana.com/blog/2024/10/17/grafana-security-release-critical-severity-fix-for-cve-2024-9264
- https://grafana.com/security/security-advisories/cve-2024-9264
- https://security.netapp.com/advisory/ntap-20250314-0007
FAQ
Is CVE-2024-9264 being exploited?
There is no confirmed exploitation: CVE-2024-9264 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 66.44% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-9264?
Critical: CVSS 9.4 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2024-9264?
github.com/grafana/grafana >= 11.0.0, < 11.0.6+security-01.
Is there a fix for CVE-2024-9264?
Yes. Fixed in 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01. Upgrade github.com/grafana/grafana to one of 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01 (or later in the same release line).
How do I check if I'm affected by CVE-2024-9264?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.