RCE in Grafana
CVE-2026-27876
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.020, 81.2th percentile (last changed ); up from 0.014 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.014 · newest: 0.020 · change: +0.006
Affected products
- Grafana — versions 11.6.0, 12.0.0, 12.2.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
4 public repositories with exploit or proof-of-concept code for this CVE:
- 0xBlackash/CVE-2026-27876 (3 stars, last pushed 2026-03-30): CVE-2026-27876
- 0xredash/CVE-2026-27876 (3 stars, last pushed 2026-03-30): CVE-2026-27876
- ashrafzaryouh/CVE-2026-27876 (3 stars, last pushed 2026-03-30): CVE-2026-27876
- atiilla/CVE-2026-27876 (2 stars, last pushed 2026-09-06): Grafana SQL Expressions Arbitrary File Write to RCE
References
This CVE has public exploit evidence. See the latest CVEs with public exploits.