CVE-2024-9264 Grafana SQL Expressions allow for remote code execution
CriticalCVSS 9.4
EPSS 97.6%
Framework module
- Published
- Updated
- Exploit status
- Public exploit available
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
| Product | Affected versions | Fixed in |
|---|---|---|
| grafana github.com/grafana/grafana(Go) | >= 11.0.0, < 11.0.6+security-01 | 11.0.6+security-01 |
| grafana github.com/grafana/grafana(Go) | >= 11.1.0, < 11.1.7+security-01 | 11.1.7+security-01 |
| grafana github.com/grafana/grafana(Go) | >= 11.2.0, < 11.2.2+security-01 | 11.2.2+security-01 |
| grafana github.com/grafana/grafana(Go) | All versions | No fix listed |
| grafana github.com/grafana/grafana(Go) | >= 11.0.0, <= 11.0.6 | No fix listed |
| grafana github.com/grafana/grafana(Go) | >= 11.1.0, <= 11.1.7 | No fix listed |
| grafana github.com/grafana/grafana(Go) | >= 11.2.0, <= 11.2.2 | No fix listed |
| grafana github.com/grafana/grafana | >= 11.0.0, < +security-01 | +security-01 |
| grafana github.com/grafana/grafana | >= 11.1.0, < +security-01 | +security-01 |
| grafana github.com/grafana/grafana | >= 11.2.0, < +security-01 | +security-01 |
| grafana github.com/grafana/grafana | >= 11.0.0, < 11.0.5\+security-01 | 11.0.5\+security-01 |
| grafana github.com/grafana/grafana | >= 11.0.6, < 11.0.6\+security-01 | 11.0.6\+security-01 |
| grafana github.com/grafana/grafana | >= 11.1.0, < 11.1.6\+security-01 | 11.1.6\+security-01 |
| grafana github.com/grafana/grafana | >= 11.1.7, < 11.1.7\+security-01 | 11.1.7\+security-01 |
| grafana github.com/grafana/grafana | >= 11.2.0, < 11.2.1\+security-01 | 11.2.1\+security-01 |
| grafana github.com/grafana/grafana | >= 11.2.2, < 11.2.2\+security-01 | 11.2.2\+security-01 |
| alpine/grafana(Alpine:v3.20) | < 11.0.7-r0 | 11.0.7-r0 |
| grafana github.com/grafana/grafana | = 11.0.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- grafana.com
- grafana.com vendor-advisory
- security.netapp.com
- github.com vendor-advisory
- security.alpinelinux.org vendor-advisory