Command Injection in Grafana
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
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
Install the Grafana release that fixes your version line, or later:
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
-
Command Execution: An attacker can execute arbitrary commands on the host machine by injecting malicious SQL queries through the SQL Expressions feature.
-
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
More Grafana Vulnerabilities
Server-side Request Forgery in mcp-grafana
Remote Code Execution Vulnerability in Grafana Enterprise Plugin
HTML Injection in Grafana
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction