CVE-2026-27876: RCE on Grafana via sqlExpressions

Published Mar 27, 2026
·
Updated

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

6 affected components
Grafana Labs Grafana
Grafana Grafana<11.6.0
Grafana Grafana>=11.6.14<12.0.0
Grafana Grafana>=12.1.10<12.2.0
Grafana Grafana>=12.2.8<12.3.0
Grafana Grafana>=12.3.6<12.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grafana to a version that resolves this vulnerability.

    Fixed in 11.6.14
  2. Upgrade

    Upgrade Grafana to a version that resolves this vulnerability.

    Fixed in 12.1.10
  3. Upgrade

    Upgrade Grafana to a version that resolves this vulnerability.

    Fixed in 12.2.8
  4. Upgrade

    Upgrade Grafana to a version that resolves this vulnerability.

    Fixed in 12.3.6
  5. Upgrade

    Upgrade Grafana to a version that resolves this vulnerability.

    Fixed in 12.4.2
  6. 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

Mar 27, 2026
CVE Published
via MITRE·02:24 PM
Data Sourced
via MITRE·02:24 PM
DescriptionSeverity
Data Sourced
via Red Hat·03:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-27876?

CVE-2026-27876 is a critical vulnerability that allows remote code execution in Grafana.

2

How do I fix CVE-2026-27876?

To fix CVE-2026-27876, users should immediately update to the latest version of Grafana.

3

What systems are affected by CVE-2026-27876?

CVE-2026-27876 affects Grafana installations that leverage SQL Expressions and Grafana Enterprise plugins.

4

Can CVE-2026-27876 be exploited remotely?

Yes, CVE-2026-27876 can be exploited remotely, allowing attackers to execute arbitrary code.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203