CVE-2024-9264
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v4.0•CRITICAL•Score: 9.4CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- v4.0•CRITICAL•Score: 9.4CVSS: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
- v3.1•CRITICAL•Score: 9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- v3.1•HIGH•Score: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 94.05%• Percentile: 100%
Techniques & Countermeasures
- CWE-94•Improper Control of Generation of Code ('Code Injection')
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-77•Improper Neutralization of Special Elements used in a Command ('Command Injection')
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Affected Systems
- github.com/grafana•grafana
≥ 11.0.0, < 11.0.6+security-01 | ≥ 11.1.0, < 11.1.7+security-01 | ≥ 11.2.0, < 11.2.2+security-01 | all
- grafana•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 | 11.0.0
References (9)
- https://grafana.com/security/security-advisories/cve-2024-9264/
- https://security.netapp.com/advisory/ntap-20250314-0007/
- https://nvd.nist.gov/vuln/detail/CVE-2024-9264
- https://github.com/grafana/grafana/pull/81666
- 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
- https://github.com/advisories/GHSA-q99m-qcv4-fpm7