CVE-2024-9264

Grafana SQL Expressions allow for remote code execution

HIGH
8.8
CVSS Score
Published: October 18, 2024 at 03:20 AM UTC
Updated: June 17, 2026 at 08:24 AM UTC
1 product affected across 1 vendorGrafana

Using Grafana by Grafana?

Get instant alerts when new vulnerabilities affect Grafana - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 98%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

11.0.0 ≤ v < 11.0.511.0.0 ≤ v < 11.0.5+security-0111.0.0 ≤ v < 11.0.611.0.6 ≤ v < 11.0.6+security-0111.1.0 ≤ v < 11.1.611.1.0 ≤ v < 11.1.6+security-0111.1.0 ≤ v < 11.1.711.1.7 ≤ v < 11.1.7+security-0111.2.0 ≤ v < 11.2.111.2.0 ≤ v < 11.2.1+security-0111.2.0 ≤ v < 11.2.211.2.2 ≤ v < 11.2.2+security-0111.0.011.0.611.1.011.1.711.2.011.2.2
Affected range stops below 11.0.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.0.5+security-01, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.0.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.0.6+security-01, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.1.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.1.6+security-01, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.1.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.1.7+security-01, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.2.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.2.1+security-01, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.2.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.2.2+security-01, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-94CWE-77

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card