CVE-2024-9264
CRITICAL 9.4CVSS 4.0Grafana Command Injection And Local File Inclusion Via Sql Expressions
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.
- Published
- 18 Oct 2024
- Last modified
- 4 Nov 2026
- Assigned by
- security@grafana.com
- NVD status
- Modified
- Weakness
- CWE-77CWE-94
- Also known as
- BIT-grafana-2024-9264GHSA-q99m-qcv4-fpm7GO-2024-3215
- Sources
- NVDJSONOSV GHSA-q99m-qcv4-fpm7JSONOSV GO-2024-3215JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@grafana.com (Secondary) | CVSS 4.0 | CRITICAL 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | security@grafana.com (Secondary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | grafana | grafanacpe:2.3:a:grafana:grafana:11.0.0:*:*:*:*:*:*:* |
= 11.0.0 | |
| OSV | Go | github.com/grafana/grafana | >= 11.0.0, < 11.0.6+security-01 | 11.0.6+security-01 |
| OSV | Go | github.com/grafana/grafana | >= 11.1.0, < 11.1.7+security-01 | 11.1.7+security-01 |
| OSV | Go | github.com/grafana/grafana | >= 11.2.0, < 11.2.2+security-01 | 11.2.2+security-01 |
| OSV | Go | github.com/grafana/grafana | all versions |
References
- https://grafana.com/security/security-advisories/cve-2024-9264/ · Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20250314-0007/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-9264 · ADVISORY
- https://github.com/grafana/grafana/pull/81666 · WEB, FIX
- https://github.com/grafana/grafana · PACKAGE
- https://grafana.com/blog/2024/10/17/grafana-security-release-critical-severity-fix-for-cve-2024-9264 · WEB
- https://github.com/advisories/GHSA-q99m-qcv4-fpm7 · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 18 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Oct 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 Oct 2024)