---
id: CVE-2026-27876
title: >-
  A chained attack via SQL Expressions and a Grafana Enterprise plugin can lead
  to a remote arbitrary code execution impact (RCE)
summary: >-
  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…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-94
  - CWE-89
published: '2026-03-27'
updated: '2026-06-27'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-27876'
references:
  - url: 'https://grafana.com/security/security-advisories/cve-2026-27876'
    label: security@grafana.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-27876'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2452277'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27876.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
  - exploit-available
epss: 0.01384
epssPercentile: 0.70987
ingestedAt: '2026-06-29T13:24:34.814Z'
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/0xBlackash/CVE-2026-27876'
    - 'https://github.com/atiilla/CVE-2026-27876'
  checkedAt: '2026-09-25T08:20:53.886Z'
exploitAvailable: true
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
