CVE-2024-9264: Grafana - Command Injection & Local File Inclusion
- Cve: CVE-2024-9264
- Name: Grafana - Command Injection & Local File Inclusion
- 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.
- Impact: Attackers can execute arbitrary commands and include local files, potentially leading to remote code execution and information disclosure.
- Remediation: Sanitize user input in duckdb queries and ensure the duckdb binary is not in Grafana's PATH or remove the feature if not needed.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution, information_disclosure
- Requirement type: logged_in
- Requirements: User must have VIEWER or higher permissions; duckdb binary must be in Grafana's PATH
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.97553
- Epss percentile: 0.99903
- Assignee: [email protected]
- Published at: 2024-10-18T04:15:04Z
- Age in days: 767
- Modified at: 2026-11-04T01:17:18Z
- Public exploits total: 15
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-9264
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, public exploits capped, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2024-9264 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9264.yaml |
Hackerone
- Reports: 2
- Rank: 3806
Public exploits
Same in every row:
- Source: poc-in-github
References
| Url | Source | Tags |
|---|---|---|
| https://grafana.com/security/security-advisories/cve-2024-9264/ | nvd | Vendor Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9264.yaml | nuclei_template | Nuclei Template |
| https://security.netapp.com/advisory/ntap-20250314-0007/ | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| grafana:grafana | = 11.0.0 | no | nvd | /v1/products/grafana/grafana |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| grafana/grafana | package, pull | yes | /v1/repositories/grafana/grafana |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 15
- Public exploit first date: 2024-10-17
- Remote: yes
- Authentication required: yes
- Hackerone reports: 2
- Exposed hosts: 202202
- Checked, none or zero: known exploited, known exploited by, initial access
- Not known: known exploited since, vulncheck known exploited since, initial access since