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.
                
            Metrics
Affected Vendors & Products
References
        History
                    Fri, 14 Mar 2025 10:45:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| References |  | 
Fri, 01 Nov 2024 18:30:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| CPEs | cpe:2.3:a:grafana:grafana:11.0.0:*:*:*:*:*:*:* | 
Thu, 24 Oct 2024 13:45:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| Weaknesses | CWE-77 | |
| References |  | |
| Metrics | threat_severity 
 | threat_severity 
 | 
Fri, 18 Oct 2024 15:15:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| First Time appeared | Grafana Grafana grafana | |
| CPEs | cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* | |
| Vendors & Products | Grafana Grafana grafana | |
| Metrics | ssvc 
 | 
Fri, 18 Oct 2024 03:30:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| 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. | |
| Title | Grafana SQL Expressions allow for remote code execution | |
| Weaknesses | CWE-94 | |
| References |  | |
| Metrics | cvssV3_1 
 
 | 
 MITRE
                        MITRE
                    Status: PUBLISHED
Assigner: GRAFANA
Published: 2024-10-18T03:20:52.489Z
Updated: 2025-03-14T10:03:06.561Z
Reserved: 2024-09-26T20:15:46.544Z
Link: CVE-2024-9264
 Vulnrichment
                        Vulnrichment
                    Updated: 2025-03-14T10:03:06.561Z
 NVD
                        NVD
                    Status : Modified
Published: 2024-10-18T04:15:04.723
Modified: 2025-03-14T10:15:15.513
Link: CVE-2024-9264
 Redhat
                        Redhat