RULE(RULE ID:338474)

Rule General Information
Release Date: 2024-10-31
Rule Name: Grafana DuckDB SQL Injection Vulnerability (CVE-2024-9264)
Severity:
CVE ID:
Rule Protection Details
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 vulnerability affects grafana of version 11.0.0-11.0.5, 11.1.0-11.1.6 and 11.2.0-11.2.1. The `duckdb` binary must be present in Grafana $PATH for this attack to function; by default, this binary is not installed in Grafana distributions.
Impact: An attacker can inject arbitrary sql commands to view or change the database of the target by exploiting the vulnerability successfully.
Affected OS: Windows, Linux, Others
Reference:
Solutions
Please contact the software vendor to update the software patch.