S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Jan 14, 2025

CVE-2024-9264 Scanner

CVE-2024-9264 Scanner - SQL Injection vulnerability in Grafana

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
2.8k
Times Used
continuous scan runs
4.7k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-9264
9.4
CVSScritical
Exploitable remotely over the internet · low-privilege account sufficient.

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.

Attack Vector
Network
Privileges Req.
Low
User Interaction
None
Affected
Grafanaby Grafana
AFFECTED< 11.0.5SAFE ✓≥ 11.0.5
grafanaby grafana
AFFECTED< 11.0.5\+security-01SAFE ✓≥ 11.0.5\+security-01
Updated Aug 22, 2026View on NVD →
Detail

Grafana is an open-source platform widely used for monitoring and observability. It allows users to visualize and analyze metrics, logs, and other data from various sources in real-time. Organizations of all sizes, from small startups to large enterprises, utilize Grafana to gain insights into their infrastructure and applications. It supports integration with numerous data sources, making it versatile for different monitoring needs. Grafana's customizable dashboards enable users to create tailored visual representations of their data, enhancing decision-making processes. Additionally, Grafana provides alerting features to notify users of potential issues promptly.

The vulnerability detected is a SQL Injection (SQLi) in Grafana's SQL Expressions feature. This flaw allows attackers to inject malicious SQL commands through unsanitized user inputs. By exploiting this vulnerability, unauthorized users can manipulate database queries to access, modify, or delete sensitive data. Additionally, the vulnerability can lead to local file inclusion, enabling attackers to read arbitrary files on the server. This combination of SQL Injection and file inclusion poses a significant security risk to Grafana deployments. The severity of this vulnerability is critical, as it can result in complete system compromise.

The SQL Injection vulnerability exists in Grafana's SQL Expressions experimental feature, which processes `duckdb` queries containing user input. The vulnerability arises because user inputs are not properly sanitized before being passed to the `duckdb` engine. Specifically, the endpoint `/api/ds/query` accepts SQL expressions that can be manipulated to include malicious commands. The vulnerable parameter is the `expression` field within the JSON payload sent to this endpoint. Attackers can craft queries such as `SELECT content FROM read_blob('/etc/passwd')` to perform arbitrary file reads. The presence of the `duckdb` binary in the server's `$PATH` is required for the attack to succeed, although it is not installed by default.

If exploited, this vulnerability allows attackers to execute arbitrary SQL commands, leading to unauthorized data access and manipulation. The inclusion aspect of the vulnerability enables attackers to read sensitive files from the server, potentially exposing confidential information. In severe cases, attackers could achieve complete system compromise, including the ability to install malware or backdoors. The ability to manipulate Grafana's data sources may disrupt monitoring and alerting systems, affecting an organization's operational capabilities. Additionally, the exposure of sensitive data can result in compliance violations and damage to an organization's reputation. Overall, the exploitation of this vulnerability can have far-reaching and detrimental impacts on the affected systems and organizations.

REFERENCES

Solution Advice
  • Apply the latest security patches provided by Grafana.
  • Upgrade Grafana to a version where the vulnerability is fixed.
  • Restrict user permissions to the minimum required level.
  • Ensure the `duckdb` binary is not present in the system's `$PATH` unless necessary.
  • Implement input validation and sanitization for all user-supplied data.
  • Regularly review and audit Grafana configurations for security best practices.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.