RCE on Grafana via sqlExpressions
Summary
| CVE | CVE-2026-27876 |
|---|---|
| State | PUBLISHED |
| Assigner | GRAFANA |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-03-27 15:16:50 UTC |
| Updated | 2026-03-31 18:36:58 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 9.1 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Problem Types: CWE-94 | CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
HighUser Interaction
NoneScope
ChangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Grafana | Grafana Enterprise | affected v11.6.0 v11.6.14 semver | OnPrem, Cloud |
| CNA | Grafana | Grafana Enterprise | affected v12.0.0 v12.1.10 semver | OnPrem, Cloud |
| CNA | Grafana | Grafana Enterprise | affected v12.2.0 v12.2.8 semver | OnPrem, Cloud |
| CNA | Grafana | Grafana Enterprise | affected v12.3.0 v12.3.6 semver | OnPrem, Cloud |
| CNA | Grafana | Grafana Enterprise | affected v12.4.0 v12.4.2 semver | OnPrem, Cloud |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| grafana.com/security/security-advisories/cve-2026-27876 | [email protected] | grafana.com | Vendor Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.