CVE-2026-27876: RCE on Grafana via sqlExpressions
A chained attack via SQL Expressions and a Grafana Enterprise plugin can lead to a remote arbitrary code execution impact (RCE). This is enabled by a feature in Grafana (OSS), so all users are always recommended to update to avoid future attack vectors going this path.
Only instances with the sqlExpressions feature toggle enabled are vulnerable.
Only instances in the following version ranges are affected:
- 11.6.0 (inclusive) to 11.6.14 (exclusive): 11.6.14 has the fix. 11.5 and below are not affected. - 12.0.0 (inclusive) to 12.1.10 (exclusive): 12.1.10 has the fix. 12.0 did not receive an update, as it is end-of-life. - 12.2.0 (inclusive) to 12.2.8 (exclusive): 12.2.8 has the fix. - 12.3.0 (inclusive) to 12.3.6 (exclusive): 12.3.6 has the fix. - 12.4.0 (inclusive) to 12.4.2 (exclusive): 12.4.2 has the fix. 13.0.0 and above also have the fix: no v13 release is affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Grafanato a version that resolves this vulnerability.Fixed in 11.6.14 - Upgrade
Upgrade
Grafanato a version that resolves this vulnerability.Fixed in 12.1.10 - Upgrade
Upgrade
Grafanato a version that resolves this vulnerability.Fixed in 12.2.8 - Upgrade
Upgrade
Grafanato a version that resolves this vulnerability.Fixed in 12.3.6 - Upgrade
Upgrade
Grafanato a version that resolves this vulnerability.Fixed in 12.4.2 - Configuration
For any instances that cannot be updated, disable the sqlExpressions feature toggle since only instances with this toggle enabled are vulnerable to SQL Expressions chaining leading to Grafana remote arbitrary code execution (RCE) when combined with a Grafana Enterprise plugin.
Grafana (OSS) sqlExpressions feature toggle = disabled
Event History
Frequently Asked Questions
What is the severity of CVE-2026-27876?
CVE-2026-27876 is a critical vulnerability that allows remote code execution in Grafana.
How do I fix CVE-2026-27876?
To fix CVE-2026-27876, users should immediately update to the latest version of Grafana.
What systems are affected by CVE-2026-27876?
CVE-2026-27876 affects Grafana installations that leverage SQL Expressions and Grafana Enterprise plugins.
Can CVE-2026-27876 be exploited remotely?
Yes, CVE-2026-27876 can be exploited remotely, allowing attackers to execute arbitrary code.
Is there a workaround for CVE-2026-27876?
Currently, the best recommendation for CVE-2026-27876 is to apply the update, as workarounds are not defined.