RCE on Grafana via sqlExpressions
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-94.
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 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Grafana | Grafana | 11.6.0 to before 11.6.14; 12.0.0 to before 12.1.10; 12.2.0 to before 12.2.8; 12.3.0 to before 12.3.6; 12.4.0 to before 12.4.2 | 11.6.14, 12.1.10, 12.2.8, 12.3.6, 12.4.2 | Patch available | CNA |
- Grafana VendorGrafana Affected 11.6.0 to before 11.6.14; 12.0.0 to before 12.1.10; 12.2.0 to before 12.2.8; 12.3.0 to before 12.3.6; 12.4.0 to before 12.4.2 Fixed in 11.6.14, 12.1.10, 12.2.8, 12.3.6, 12.4.2 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:grafana:grafana:*:*:*:*:enterprise:*:*:* | before 11.6.0; 11.6.14 to before 12.0.0; 12.1.10 to before 12.2.0; 12.2.8 to before 12.3.0; 12.3.6 to before 12.4.0 | Vulnerable | Grafana |
- cpe:2.3:a:grafana:grafana:*:*:*:*:enterprise:*:*:* Versions before 11.6.0; 11.6.14 to before 12.0.0; 12.1.10 to before 12.2.0; 12.2.8 to before 12.3.0; 12.3.6 to before 12.4.0 Vulnerable ·Grafana
Remediation
- Fix · CNA Grafana (Grafana) Fixed in 11.6.14, 12.1.10, 12.2.8, 12.3.6, 12.4.2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Grafana 11.6.14, 12.1.10 and 3 more versions
4 records Highest priority Priority MEDIUM 1 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2026-22221 Public dashboards discloses all direct mode datasourcesPriority LOW 33
- TI-2026-22651 Grafana Testdata datasource can issue unbounded memory allocationsPriority LOW 29
- TI-2026-22223 Query resampling can cause unbounded memory allocationsPriority LOW 29
Vendor assessments
Red Hat
Red Hat rating: Critical. Red Hat's page for this CVE →
Not affected: 3 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27876
- 2026-10-03 Alias added: GHSA-736h-475m-xhjc
- 2026-11-03 CISA SSVC decision points changed
References
More Grafana vulnerabilities
- TI-2021-16611 Snapshot authentication bypass in grafana KEVCVSS 3.1CRITICAL 9.8
- TI-2021-19604 Grafana path traversal KEVCVSS 3.1HIGH 7.5
- TI-2024-08600 Grafana SQL Expressions allow for remote code execution CVSS 4.0CRITICAL 9.4
- TI-2023-02931 Authentication bypass by spoofing in Grafana CVSS 3.1CRITICAL 9.8
- TI-2020-10491 The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control… CVSS 3.1HIGH 8.2
- TI-2025-03662 Open redirect in Grafana CVSS 3.1HIGH 7.6
Sources
- CVE-2026-27876 · CVE Program
- CVE-2026-27876 · NVD
- FIRST EPSS
- GHSA-736h-475m-xhjc · GitHub Advisory Database · CC BY 4.0
- CVE-2026-27876 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences