CVE-2024-9264
Grafana SQL Expressions allow for remote code execution
Reported by grafana · Published October 18, 2024
github.com/grafana/grafana is fixed in 11.2.3, 11.2.2+security-01, 11.1.8 and 3 more (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/grafana/grafana | Go Modules | 11.2.3, 11.2.2+security-01, 11.1.8, 11.1.7+security-01, 11.0.7, 11.0.6+security-01 |
| Grafana | GitHub Packages | 11.2.2, 11.2.1, 11.1.7, 11.1.6, 11.0.6, 11.0.5 |
| grafana-fips-12.1 | Chainguard | 12.1.10.01-r3 |
| grafana | Bitnami | 11.2.2 |
| grafana-11.0 | Chainguard | 11.0.7-r0 |
| grafana-fips-12.0 | Chainguard | 12.0.10-r6 |
| grafana-11.0 | Wolfi | 11.0.7-r0 |
| grafana-fips-11.0 | Chainguard | 11.0.7-r0 |
| grafana-fips-13.1 | Chainguard | 13.1.0-r0 |
| grafana | Alpine | 11.0.7-r0 |
| grafana | grafana | 11.2.2+security-01, 11.2.1+security-01, 11.1.7+security-01, 11.1.6+security-01, 11.0.6+security-01, 11.0.5+security-01 |
| grafana | Bitnami | 11.2.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Grafana | Grafana | 11.0.0, 11.1.0, 11.2.0 |
| chainguard | grafana-fips-12.1 | 0 |
| chainguard | grafana-fips-13.0 | * |
| chainguard | grafana-fips-11.6 | * |
| chainguard | grafana-fips-12.4 | * |
| github.com | grafana/grafana | 11.2.0, 11.1.0, 11.0.0 |
| grafana | grafana | 11.2.2, 11.0.0, 11.0.6 |
| chainguard | grafana-11.0 | 0 |
| Grafana | Grafana | 11.2.0, 11.0.0, 11.1.0 |
| chainguard | grafana-fips-12.0 | 0 |
| chainguard | grafana-fips-12.2 | * |
| wolfi | grafana-11.0 | 0 |
| chainguard | grafana-fips-12.3 | * |
| chainguard | grafana-fips-11.0 | 0 |
| chainguard | grafana-fips-13.1 | 0 |
| alpine | grafana | 0 |
Timeline
- Oct 18, 2024 EPSS Score (30 in total, the first dated here)
- Oct 18, 2024 Coalition ESS Score (12 in total, the first dated here)
- Oct 18, 2024 CVE Published
- Oct 22, 2024 PoC Published
- Mar 17, 2026 Security Advisory (5 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-9264
vulnetix vdb fixes CVE-2024-9264
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-9264/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://security.netapp.com/advisory/ntap-20250314-0007/ url
- https://nvd.nist.gov/vuln/detail/CVE-2024-9264 advisory
- https://github.com/advisories/GHSA-q99m-qcv4-fpm7 advisory
- https://github.com/grafana/grafana/pull/81666 patch
- https://github.com/grafana/grafana url
- https://grafana.com/blog/2024/10/17/grafana-security-release-critical-severity-fix-for-cve-2024-9264 url
- https://grafana.com/security/security-advisories/cve-2024-9264 url