CVE-2024-9264
Grafana SQL Expressions allow for remote code execution
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.
How to fix CVE-2024-9264
To remediate CVE-2024-9264, upgrade the affected package to a fixed version below.
- —upgrade to 11.2.2 or later
- —upgrade to 11.0.6+security-01 or later
- —no fix listed
Is CVE-2024-9264 being exploited?
Likely — EPSS is 94.0%, placing CVE-2024-9264 in the top tier of vulnerabilities by exploitation probability. Prioritise patching.
Affected packages (3)
- >= 11.0.0, < 11.2.2
- >= 11.0.0, < 11.0.6+security-01
- from 0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| osv | CVSS 3.1 | CRITICAL9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |