CVE-2026-27876
RCE on Grafana via sqlExpressions
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. 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.
INFO
Published Date :
March 27, 2026, 3:16 p.m.
Last Modified :
July 15, 2026, 2:19 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | CRITICAL | [email protected] | ||||
| CVSS 3.1 | CRITICAL | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
Solution
- Update Grafana to the latest version.
- Disable the sqlExpressions feature toggle if not needed.
Public PoC/Exploit Available at Github
CVE-2026-27876 has a 3 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-27876.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-27876 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-27876
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Multi-vector DevOps attack surface analysis — 18 CVEs across 12 tools mapped into a 9-layer kill chain. Includes deep-dive docs, attack chain simulations, and 56 detection rules (YARA, Sigma, Snort). NGINX → Argo CD → Grafana → Docker → Jenkins → Kubernetes → Prometheus → Ansible → Linux → GitHub
YARA Python
252 standalone, live-validated CVE exploit PoCs (pure-Python stdlib) across web apps, AI/ML platforms and the Linux kernel; 75 in the CISA KEV catalog. For authorized security testing and education.
cve exploit penetration-testing poc security-research vulnerability cybersecurity ethical-hacking infosec rce red-team security appsec cisa-kev deserialization exploit-development proof-of-concept python
Python C
CVE-2026-27876
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-27876 vulnerability anywhere in the article.
-
CybersecurityNews
Critical Grafana Vulnerabilities Let Attackers Achieve Remote Code Execution
Urgent security updates for Grafana version 12.4.2 address two critical vulnerabilities that could allow attackers to achieve full remote code execution (RCE) and execute denial-of-service (DoS) attac ... Read more
-
Daily CyberSecurity
SQL to SSH: Critical 9.1 CVSS RCE in Grafana Turns Monitoring into a Remote Hijack
The Grafana team has released an urgent security advisory following the discovery of two significant vulnerabilities that could allow attackers to hijack servers or crash instances. The release of Gra ... Read more
The following table lists the changes that have been made to the
CVE-2026-27876 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jul. 15, 2026
Action Type Old Value New Value Changed Affected [{'cpes': ['cpe:/o:redhat:enterprise_linux:10'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 10', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:8'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 8', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:9'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 9', 'defaultStatus': 'unaffected'}] [{'cpes': ['cpe:/o:redhat:enterprise_linux:10'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 10', 'packageName': 'grafana', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:8'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 8', 'packageName': 'grafana', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:9'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 9', 'packageName': 'grafana', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}] -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jun. 27, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/o:redhat:enterprise_linux:10'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 10', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:8'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 8', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:9'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 9', 'defaultStatus': 'unaffected'}] Added CVSS V3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H Added CWE CWE-89 Added Reference https://access.redhat.com/security/cve/CVE-2026-27876 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2452277 Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27876.json -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Changed Affected [{'vendor': 'Grafana', 'product': 'Grafana', 'versions': [{'status': 'affected', 'version': '11.6.0', 'lessThan': '11.6.14', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.0.0', 'lessThan': '12.1.10', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.2.0', 'lessThan': '12.2.8', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.3.0', 'lessThan': '12.3.6', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.4.0', 'lessThan': '12.4.2', 'versionType': 'semver'}], 'platforms': ['OnPrem', 'Cloud'], 'defaultStatus': 'unaffected'}] [{'vendor': 'Grafana', 'product': 'Grafana', 'versions': [{'status': 'affected', 'version': '11.6.0', 'lessThan': '11.6.14', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.0.0', 'lessThan': '12.1.10', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.2.0', 'lessThan': '12.2.8', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.3.0', 'lessThan': '12.3.6', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.4.0', 'lessThan': '12.4.2', 'versionType': 'semver'}], 'defaultStatus': 'unaffected'}] -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Grafana', 'product': 'Grafana', 'versions': [{'status': 'affected', 'version': '11.6.0', 'lessThan': '11.6.14', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.0.0', 'lessThan': '12.1.10', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.2.0', 'lessThan': '12.2.8', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.3.0', 'lessThan': '12.3.6', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.4.0', 'lessThan': '12.4.2', 'versionType': 'semver'}], 'platforms': ['OnPrem', 'Cloud'], 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-27876', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-03-27T00:00:00+00:00'} -
CVE Modified by [email protected]
Apr. 02, 2026
Action Type Old Value New Value Changed 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. 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. -
Initial Analysis by [email protected]
Mar. 31, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:grafana:grafana:*:*:*:*:enterprise:*:*:* versions up to (excluding) 11.6.0 *cpe:2.3:a:grafana:grafana:*:*:*:*:enterprise:*:*:* versions from (including) 11.6.14 up to (excluding) 12.0.0 *cpe:2.3:a:grafana:grafana:*:*:*:*:enterprise:*:*:* versions from (including) 12.1.10 up to (excluding) 12.2.0 *cpe:2.3:a:grafana:grafana:*:*:*:*:enterprise:*:*:* versions from (including) 12.2.8 up to (excluding) 12.3.0 *cpe:2.3:a:grafana:grafana:*:*:*:*:enterprise:*:*:* versions from (including) 12.3.6 up to (excluding) 12.4.0 Added Reference Type Grafana Labs: https://grafana.com/security/security-advisories/cve-2026-27876 Types: Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Mar. 27, 2026
Action Type Old Value New Value Added CWE CWE-94 -
New CVE Received by [email protected]
Mar. 27, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H Added Reference https://grafana.com/security/security-advisories/cve-2026-27876