Grafana SQL Expressions allow for remote code execution
What fixes it
- 11.0.5GrafanaCVE List
- 11.1.6GrafanaCVE List
- 11.2.1GrafanaCVE List
- 11.0.6GrafanaCVE List
- 11.1.7GrafanaCVE List
- 11.2.2GrafanaCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Timeline
- 17 Oct 2024Exploit code publicMetasploit
- 18 Oct 2024, 03:20 UTCPublishedCVE List
Public exploit code and templates 2
- Exploit moduleGrafana SQL Expressions DuckDB Command Injection 17 Oct 2024Metasploit
- Scanner templateGrafana Post-Auth DuckDB - SQL Injection To File ReadNuclei
Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.
Reports 1
1 outlet mention it. Reports are not confirmation; each links to its source.
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.
Text from CVE List
Affected versions 6
- Grafanaaffected: 11.0.0 before 11.0.5CVE List
- Grafanaaffected: 11.1.0 before 11.1.6CVE List
- Grafanaaffected: 11.2.0 before 11.2.1CVE List
- Grafanaaffected: 11.0.0 before 11.0.6CVE List
- Grafanaaffected: 11.1.0 before 11.1.7CVE List
- Grafanaaffected: 11.2.0 before 11.2.2CVE List