Grafana SQL Expressions allow for remote code execution
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Grafana | Grafana | 11.0.0 to before 11.0.5; 11.1.0 to before 11.1.6; 11.2.0 to before 11.2.1; 11.0.0 to before 11.0.6; 11.1.0 to before 11.1.7; 11.2.0 to before 11.2.2 | 11.0.5, 11.1.6, 11.2.1, 11.0.6, 11.1.7, 11.2.2 | Patch available | CNA |
| — | github.com/grafana/grafana (Go) | 11.0.0 to before 11.0.6+security-01 | 11.0.6+security-01 | Patch available | GHSA-q99m-qcv4-fpm7 |
| — | github.com/grafana/grafana (Go) | 11.1.0 to before 11.1.7+security-01 | 11.1.7+security-01 | Patch available | GHSA-q99m-qcv4-fpm7 |
| — | github.com/grafana/grafana (Go) | 11.2.0 to before 11.2.2+security-01 | 11.2.2+security-01 | Patch available | GHSA-q99m-qcv4-fpm7 |
- Grafana VendorGrafana Affected 11.0.0 to before 11.0.5; 11.1.0 to before 11.1.6; 11.2.0 to before 11.2.1; 11.0.0 to before 11.0.6; 11.1.0 to before 11.1.7; 11.2.0 to before 11.2.2 Fixed in 11.0.5, 11.1.6, 11.2.1, 11.0.6, 11.1.7, 11.2.2 Patch available CNA
- github.com/grafana/grafana (Go) Vendor— Affected 11.0.0 to before 11.0.6+security-01 Fixed in 11.0.6+security-01 Patch available GHSA-q99m-qcv4-fpm7
- github.com/grafana/grafana (Go) Vendor— Affected 11.1.0 to before 11.1.7+security-01 Fixed in 11.1.7+security-01 Patch available GHSA-q99m-qcv4-fpm7
- github.com/grafana/grafana (Go) Vendor— Affected 11.2.0 to before 11.2.2+security-01 Fixed in 11.2.2+security-01 Patch available GHSA-q99m-qcv4-fpm7
Remediation
- Fix · CNA Grafana (Grafana) Fixed in 11.0.5, 11.1.6, 11.2.1, 11.0.6, 11.1.7, 11.2.2
- Fix · GHSA-q99m-qcv4-fpm7 github.com/grafana/grafana (Go) Fixed in 11.0.6+security-01 Advisory →
- Fix · GHSA-q99m-qcv4-fpm7 github.com/grafana/grafana (Go) Fixed in 11.1.7+security-01 Advisory →
- Fix · GHSA-q99m-qcv4-fpm7 github.com/grafana/grafana (Go) Fixed in 11.2.2+security-01 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Critical. Red Hat's page for this CVE →
Not affected: 4 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Storage 3
Timeline
- 2026-10-02 Threatist record created from CVE-2024-9264
- 2026-10-03 Alias added: GHSA-q99m-qcv4-fpm7
- 2026-11-03 CISA SSVC decision points changed
References
Advisory 2
Other 5
More Grafana vulnerabilities
- TI-2021-16611 Snapshot authentication bypass in grafana KEVCVSS 3.1CRITICAL 9.8
- TI-2021-19604 Grafana path traversal KEVCVSS 3.1HIGH 7.5
- TI-2023-02931 Authentication bypass by spoofing in Grafana CVSS 3.1CRITICAL 9.8
- TI-2020-10491 The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control… CVSS 3.1HIGH 8.2
- TI-2025-03662 Open redirect in Grafana CVSS 3.1HIGH 7.6
- TI-2022-13141 Stored XSS in Grafana's Unified Alerting CVSS 3.1HIGH 8.7
Sources
- CVE-2024-9264 · CVE Program
- CVE-2024-9264 · NVD
- FIRST EPSS
- GHSA-q99m-qcv4-fpm7 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-9264 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences