Skip to main content

Grafana CVE-2026-27876

| EUVDEUVD-2026-16634 CRITICAL
Code Injection (CWE-94)
2026-03-27 GRAFANA
9.1
CVSS 3.1 · Vendor: GRAFANA
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Enable sqlExpressions feature toggle
  2. Exploit
    Craft malicious SQL expression payload
  3. Execution
    Inject code through Grafana Enterprise plugin
  4. Impact
    Execute arbitrary code on server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires Grafana (OSS or Enterprise) with the sqlExpressions feature toggle explicitly enabled. Attacker needs high-privilege authentication (admin or equivalent role) to configure SQL expressions chained with a vulnerable Enterprise plugin to achieve RCE.

Impact

The CVSS score of 9.1 (Critical) reflects the severe impact potential with complete confidentiality, integrity, and availability compromise plus changed scope. However, real-world exploitability is constrained by the requirement for high-privilege authentication (PR:H), meaning only administrative or highly trusted users can trigger the vulnerability. The network attack vector (AV:N) and low complexity (AC:L) indicate remote exploitation is straightforward once authenticated. No public exploit identified at time of analysis and no CISA KEV listing suggests this is not currently under active exploitation. The requirement for the sqlExpressions feature toggle to be enabled further limits the attack surface to a subset of Grafana deployments. While the technical impact is maximum, the narrow prerequisite conditions and lack of observed exploitation activity suggest this is a high-severity issue requiring timely patching but not an emergency requiring immediate out-of-band response for most organizations. Priority should be elevated for environments where high-privilege accounts may be compromised or where the sqlExpressions feature is actively used.

Exploit ScenarioDerived

An authenticated attacker with high-privilege administrative access to a Grafana instance with sqlExpressions enabled crafts a malicious SQL expression that chains with a Grafana Enterprise plugin to inject and execute arbitrary code on the server. The low attack complexity suggests exploitation involves straightforward interaction with existing Grafana features rather than complex race conditions or timing attacks. Successful exploitation grants the attacker complete control over the Grafana server with changed scope impact, potentially enabling lateral movement to connected data sources and infrastructure managed through the Grafana installation.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 27, 2026

Remote code execution is achievable in Grafana installations through a chained attack combining SQL Expressions with a Grafana Enterprise plugin, affecting both open-source and Enterprise deployments. The vulnerability requires high-privilege authenticated access (PR:H) but enables cross-scope impact with complete system compromise once exploited. Only instances with the sqlExpressions feature toggle enabled are vulnerable, though Grafana recommends all users update to prevent future exploitation paths using this attack vector. No public exploit identified at time of analysis, and authentication as a high-privilege user is required per CVSS vector.

RemediationAI

Update Grafana installations to the patched version specified in the Grafana security advisory at https://grafana.com/security/security-advisories/cve-2026-27876. Patch available per vendor advisory, though specific fixed version numbers are not provided in the intelligence data. As an interim mitigation for environments unable to patch immediately, disable the sqlExpressions feature toggle to eliminate the attack vector. Additionally, audit and restrict administrative access privileges to minimize the pool of accounts with PR:H level permissions capable of exploiting this vulnerability. Review Grafana Enterprise plugin configurations to identify and assess risk from plugin interactions with SQL Expressions functionality.

Affected VersionsENISA

Grafana Enterprise v11.6.0 <v11.6.14
Grafana Enterprise v12.0.0 <v12.1.10
Grafana Enterprise v12.4.0 <v12.4.2
Grafana Enterprise v12.3.0 <v12.3.6
Grafana Enterprise v12.2.0 <v12.2.8

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects Grafana Enterprise and related products as identified by CPE cpe:2.3:a:grafana:grafana_enterprise:*:*:*:*:*:*:*:*. The attack chain leverages the SQL Expressions feature in Grafana OSS combined with functionality in a Grafana Enterprise plugin to achieve arbitrary code execution. SQL Expressions is a feature toggle that enables SQL-based data transformations and queries within Grafana dashboards. The chained nature indicates multiple components must interact to create the exploitable condition, suggesting the vulnerability arises from inadequate input validation or sandboxing across plugin boundaries when SQL expressions are processed. The Changed scope (S:C) in the CVSS vector indicates the vulnerability can affect resources beyond its original security context, typical of code execution flaws that break out of application containment.

Know when Grafana gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GRAFANA) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
SUSE CRITICAL
Red Hat 9.1 CRITICAL

Primary rating from Vendor (GRAFANA).

CVSS VectorVendor: GRAFANA

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Apr 10, 2026 - 08:30 nvd
Patch available
CVE Published
Mar 27, 2026 - 14:24 nvd
CRITICAL 9.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A critical remote code execution vulnerability in Grafana enables authenticated administrators to achieve complete system compromise through a chained SQL expression attack. Organizations running Grafana with the sqlExpressions feature enabled face immediate risk of full infrastructure takeover by privileged internal users or attackers who compromise high-level credentials, requiring urgent mitigation regardless of patch availability.

Business Impact: Severe
Compensating Controls

Disable the sqlExpressions feature toggle on all Grafana instances immediately; enforce principle of least privilege with role-based access controls limiting administrative permissions; segment Grafana deployments on isolated network zones with restricted outbound connectivity; implement WAF rules to monitor and block unusual administrative API activity; enable comprehensive audit logging of all administrative actions and API calls; require multi-factor authentication for all administrative accounts; monitor for SQL injection patterns in Grafana plugin configurations and API requests.

Threat Intelligence Overview

EPSS Score
0.1%
Top 76% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2024-9264 CRITICAL POC
9.4 Oct 18

The SQL Expressions experimental feature of Grafana allows for the evaluation of `duckdb` queries containing user input.

CVE-2023-34111 CRITICAL POC
9.8 Jun 06

The `Release PR Merged` workflow in the github repo taosdata/grafanaplugin is subject to a command injection vulnerabili

CVE-2022-26148 CRITICAL POC
9.8 Mar 21

An issue was discovered in Grafana through 7.3.4, when integrated with Zabbix. Rated critical severity (CVSS 9.8), this

CVE-2020-27846 CRITICAL POC
9.8 Dec 21

A signature verification vulnerability exists in crewjam/saml. Rated critical severity (CVSS 9.8), this vulnerability is

CVE-2018-15727 CRITICAL POC
9.8 Aug 29

Grafana 2.x, 3.x, and 4.x before 4.6.4 and 5.x before 5.2.3 allows authentication bypass because an attacker can generat

CVE-2026-63087 CRITICAL POC
9.3 Jul 16

Authentication bypass in Grafana OnCall through 1.16.11 lets unauthenticated remote attackers mint a valid PluginAuthTok

CVE-2023-36649 CRITICAL POC
9.1 Dec 12

Insertion of sensitive information in the centralized (Grafana) logging system in ProLion CryptoSpike 3.0.15P2 allows re

CVE-2025-4123 HIGH POC
7.6 May 22

A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redire

CVE-2020-13379 HIGH POC
8.2 Jun 03

The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control issue. Rated high severity (CVSS

CVE-2023-1387 HIGH POC
7.5 Apr 26

Grafana is an open-source platform for monitoring and observability. Rated high severity (CVSS 7.5), this vulnerability

CVE-2022-32276 HIGH POC
7.5 Jun 17

Grafana 8.4.3 allows unauthenticated access via (for example) a /dashboard/snapshot/*?orgId=0 URI. Rated high severity (

CVE-2022-32275 HIGH POC
7.5 Jun 06

Grafana 8.4.3 allows reading files via (for example) a /dashboard/snapshot/%7B%7Bconstructor.constructor'/.. Rated high

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
SUSE Manager Client Tools 15 Fixed
SUSE Manager Client Tools for SLE 15 Fixed
SUSE Multi-Linux Manager Client Tools for SLE 15 Fixed
openSUSE Leap 15.6 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy