# CVE-2026-27876: Grafana remote code execution via SQL Expressions and Enterprise plugin

Source: https://junglewise.ai/threats/cve-2026-27876-grafana-remote-code-execution-via-sql-expressions-and-enterprise  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-27. Updated: 2026-06-27  
License: CC BY 4.0 with a link back

CVE-2026-27876 · Severity: critical · CVSS 9.1 · Published 2026-03-27

Grafana is a popular data visualization and monitoring platform used to track infrastructure health and business metrics. A security vulnerability has been identified where a combination of specific SQL features and an Enterprise plugin can allow an attacker to take full control of the server. This could lead to the theft of sensitive data, disruption of monitoring services, or further attacks on the internal network.

## Quick answers

**Is CVE-2026-27876 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-27876 being exploited in the wild.

**How severe is CVE-2026-27876?** Critical severity, with a CVSS score of 9.1, published 27 March 2026.

**Which products and versions are affected?** Grafana Labs Grafana 11.6.0 to 11.6.13, 12.0.0 to 12.1.9, 12.2.0 to 12.2.7, 12.3.0 to 12.3.5, 12.4.0 to 12.4.1.

**Is there a fix for CVE-2026-27876?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-27876 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-27876?** Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

This vulnerability is a chained attack involving SQL Expressions (CWE-89) and a Grafana Enterprise plugin, resulting in remote code execution (CWE-94). The vulnerability is only exploitable if the 'sqlExpressions' feature toggle is enabled. An attacker with high privileges (PR:H) can leverage this chain to execute arbitrary commands on the host system with the permissions of the Grafana process. The issue affects multiple versions across the 11.x and 12.x branches, but has been patched in versions 11.6.14, 12.1.10, 12.2.8, 12.3.6, and 12.4.2. Version 13.0.0 and later are not affected.

## Affected products

- Grafana Labs Grafana 11.6.0 to 11.6.13, 12.0.0 to 12.1.9, 12.2.0 to 12.2.7, 12.3.0 to 12.3.5, 12.4.0 to 12.4.1

## Timeline

- 2026-03-27: disclosed
- 2026-03-27: advisory

## References

- [https://grafana.com/security/security-advisories/cve-2026-27876](https://grafana.com/security/security-advisories/cve-2026-27876)
- [https://access.redhat.com/security/cve/CVE-2026-27876](https://access.redhat.com/security/cve/CVE-2026-27876)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2452277](https://bugzilla.redhat.com/show_bug.cgi?id=2452277)
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27876.json](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27876.json)
