CVE Catalog

CVE-2024-9264

CriticalCVSS 9.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Very high risk
97.55%

100th percentile - higher than 100% of all known CVEs

Summary

The experimental SQL Expressions feature in Grafana allows evaluation of duckdb queries containing user input. These queries are insufficiently sanitized before being passed to duckdb, leading to command injection and local file inclusion. Any user with VIEWER or higher permission can execute this attack, provided the duckdb binary is present in Grafana's $PATH (not installed by default).

Risk Assessment

An authenticated low-privileged user can execute arbitrary OS commands and read local files on the Grafana server, potentially leading to data disclosure or further escalation.

Recommendation

Disable the experimental SQL Expressions feature or upgrade Grafana to a version that fixes the vulnerability. Ensure the duckdb binary is not present in the Grafana server's $PATH.

Other vulnerabilities in Grafana

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS