CVE-2024-9264
CriticalCVSS 9.9Exploitation Probability (EPSS)
Very high risk100th percentile - higher than 100% of all known CVEs
Summary
The experimental SQL Expressions feature in Grafana allows evaluation of duckdb queries containing user input. These queries are insufficiently sanitized before being passed to duckdb, leading to command injection and local file inclusion. Any user with VIEWER or higher permission can execute this attack, provided the duckdb binary is present in Grafana's $PATH (not installed by default).
Risk Assessment
An authenticated low-privileged user can execute arbitrary OS commands and read local files on the Grafana server, potentially leading to data disclosure or further escalation.
Recommendation
Disable the experimental SQL Expressions feature or upgrade Grafana to a version that fixes the vulnerability. Ensure the duckdb binary is not present in the Grafana server's $PATH.
Other vulnerabilities in Grafana
See all- CVE-2026-13720Medium
In Grafana, a user with the Editor role can set file-provisioning metadata (grafana.app/managedBy, grafana.app/managerId and grafana.app/sourcePath annotations) when creating a dashboard through the dashboard API, because these fields were stored without an authorization check. The dashboard then appears file-provisioned, and administrators can no longer update or delete it through Grafana. The impact is limited to the same organization and no data is exposed.
- CVE-2026-13719Medium
In Grafana, an authenticated user can list alert rules stored in folders they are not allowed to read through the alert rules API list endpoint. When the set of folders the user may read was empty, the folder restriction was dropped and every alert rule in the organization was returned. From Grafana 13.1.0, any user can trigger this with a folder filter. The exposed data is rule configuration; data source credentials are not exposed.
- CVE-2026-81842Medium
An authenticated user with edit permission on one folder can move a library panel into another folder where they only have view permission, through the library elements API or the equivalent App Platform resource. The update path did not check library panel create permission on the destination folder (incorrect authorization). No data from the destination folder is disclosed, and existing content there cannot be changed.
- CVE-2026-81841Medium
Pausing a shared (public) dashboard did not revoke its access token for the endpoints that serve frontend bootstrap data. Anyone holding the link to a paused shared dashboard could still retrieve, without authenticating, the configuration of the dashboard's data sources, including stored credentials for data sources using browser access (missing authorization). Deleting the shared dashboard does revoke the token.
- CVE-2026-28381Critical
The Snowflake datasource vulnerability allows GET/PUT commands, enabling any user with query access to read/write files between the local Grafana server and the connected Snowflake host.
- CVE-2026-27876Critical
A chained attack via SQL Expressions and a Grafana Enterprise plugin can lead to remote arbitrary code execution (RCE). The vulnerability requires the sqlExpressions feature toggle to be enabled and affects specific Grafana OSS versions.
- CVE-2025-41115Critical
In Grafana versions 12.x where SCIM provisioning is enabled and configured, a vulnerability in user identity handling allows a malicious or compromised SCIM client to provision a user with a numeric externalId, which could allow overriding internal user IDs and lead to impersonation or privilege escalation.
- CVE-2023-3128Critical
Grafana validates Azure AD accounts based on the email claim. The email field in Azure AD profiles is not unique and can be easily modified, leading to account takeover and authentication bypass when Azure AD OAuth is configured with a multi-tenant app.
- CVE-2023-0507High
Grafana starting from the 8.1 branch had a stored XSS vulnerability affecting the core plugin GeoMap. Map attributions were not properly sanitized, allowing arbitrary JavaScript execution in the context of the currently authorized user. An attacker with the Editor role could change a panel to include malicious JavaScript, enabling privilege escalation to Admin role.
- CVE-2021-43798HighActively exploited
Grafana versions 8.0.0-beta1 through 8.3.0 (except for patched versions) is vulnerable to directory traversal, allowing access to local files. The vulnerable URL path is: `<grafana_host_url>/public/plugins//`, where is the plugin ID for any installed plugin. Grafana Cloud has never been vulnerable.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

