Command Injection in Grafana

Patch this weekFull system takeover over the network by a logged-in user.
9.4CRITICAL

CVE-2024-9264

Key Information:

Vendor

Grafana

Status
CVE ID
CVE ID:
CVE-2024-9264
Vendor
CVE Published:
18 October 2024
Fixed in
Fixed in:
11.0.5, 11.1.6, 11.2.1 +3 more

Timeline

Exploit known 1 day before it was disclosed

  • ๐Ÿฅ‡

    Vulnerability reached the number 1 worldwide trending spot

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ“ˆ

    Vulnerability started trending

  • Vulnerability published

  • ๐Ÿ‘พ

    Exploit known to exist

  • ๐Ÿ“ฐ

    First article discovered by Grafana

  • Vulnerability Reserved

Badges

๐Ÿฅ‡ Trended No. 1๐Ÿ“ˆ Trended๐Ÿ“ˆ Score: 9,920๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC๐ŸŸฃ EPSS 66%๐Ÿ“ฐ News Worthy

How risky is it?

  • Partly: Works over the network, but needs a login
  • Yes: Public exploit code (8 proof-of-concepts)
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Update to a fixed version
Grafana 11.0.0 to below 11.0.5 is vulnerable
Grafana 11.1.0 to below 11.1.6 is vulnerable
Grafana 11.2.0 to below 11.2.1 is vulnerable
Grafana 11.0.0 to below 11.0.6 is vulnerable
Grafana 11.1.0 to below 11.1.7 is vulnerable
Grafana 11.2.0 to below 11.2.2 is vulnerable

Install the Grafana release that fixes your version line, or later:

11.0.511.1.611.2.111.0.611.1.711.2.2
Read the vendor advisory โ†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Grafana. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Look for signs of compromise

Exploit code is public, so check logs on exposed Grafana systems for unusual requests or new processes from before you patched. The 8 public proof-of-concepts show what an attack looks like.

4Why it's rated "Patch this week"
  • Exploit code is public, so attacks are easy to copy.
  • EPSS gives it a 66.4% chance of exploitation in the next 30 days.
  • Its CVSS severity is critical (9.4).

What is CVE-2024-9264?

CVE-2024-9264 is a critical vulnerability in Grafana's experimental SQL Expressions feature, which allows users to execute duckdb queries. The flaw arises from insufficient sanitization of user input before it is processed by duckdb, leading to command injection and local file inclusion risks. Any user with VIEWER or higher permissions can exploit this vulnerability, provided the duckdb binary is present in Grafana's $PATH.

Grafana has released patches for versions 11.0.x, 11.1.x, and 11.2.x to address this issue. The vulnerability was first discovered on September 26, 2024, and the patches began rolling out shortly thereafter.

Potential Impact of CVE-2024-9264

  1. Command Execution: An attacker can execute arbitrary commands on the host machine by injecting malicious SQL queries through the SQL Expressions feature.

  2. File Access: The attacker can access any file on the Grafana host, including sensitive information such as unencrypted passwords.

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

News Articles

Vulnerability Recap 10/21/24: Apple, Google Meet, Kubernetes

We keep seeing instances where threat actors exploit already-patched software. This is your weekly encouragement to patch your products now.

Grafana critical vulnerability risks remote code execution

The experimental SQL Expressions feature contains a flaw due to insufficient query sanitization.

Grafana security release: Critical severity fix for CVE-2024-9264 | Grafana Labs

Today we rolled out patch releases for Grafana 11.0.x, 11.1.x, and 11.2.x that include a critical severity security fix. If you are affected, we recommend that you install newly released versions.

References

Server-side Request Forgery in mcp-grafana

CVE-2026-19516
GrafanaGrafana Mcp Server๐Ÿ˜„๐Ÿ‘พ9.1CRITICAL

Remote Code Execution Vulnerability in Grafana Enterprise Plugin

CVE-2026-27876
GrafanaGrafana๐Ÿ˜„๐Ÿ‘พ9.1CRITICAL

HTML Injection in Grafana

CVE-2025-41117
GrafanaGrafana/grafana6.8MEDIUM
View more Grafana vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

EPSS Score

66% chance of being exploited in the next 30 days.

CVSS V4

Score:
9.4
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None
.