CVE-2024-9264

published 18 Oct 2024 · updated 4 Nov 2026

Grafana SQL Expressions allow for remote code execution

10.0CriticalCVSS 9.9EPSS 98%3 public exploits

3 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 98%. Fixed in 11.0.5, 11.0.6, 11.1.6 and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
grafanagrafana=11.0.0
grafana>=11.0.0 <11.0.5, >=11.0.0 <11.0.6, >=11.1.0 <11.1.6, >=11.1.0 <11.1.7, >=11.2.0 <11.2.1, >=11.2.0 <11.2.211.0.5, 11.0.6, 11.1.6, 11.1.7, 11.2.1, 11.2.2

Exploit evidence

3 public sources

Coverage

News and research mentioning this CVE

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-9264 severity on Zeptric[![CVE-2024-9264](https://zeptric.io/badge/cve/CVE-2024-9264.svg)](https://zeptric.io/cve/CVE-2024-9264)