What is Grafana?
Grafana is the world's most widely deployed open-source observability and data visualization platform. Organizations use Grafana to display metrics, logs, and traces from datasources like Prometheus, InfluxDB, Elasticsearch, and cloud providers in dashboards and alerts. Grafana's snapshot feature allows users to share dashboard views publicly — sharing a point-in-time snapshot of metric data including potentially sensitive infrastructure information without requiring Grafana authentication. Organizations widely use Grafana internally but also expose it to external users via the snapshot sharing feature.
Overview
CVE-2021-39226 is a snapshot authentication bypass vulnerability (CWE-287) in Grafana. Both authenticated users and unauthenticated attackers can exploit this vulnerability to view any snapshot by guessing or discovering its UID, and authenticated users can delete any snapshot regardless of who created it. Grafana patched this with an emergency release on October 5, 2021 (versions 7.5.11 and 8.1.6). CISA added this to KEV in August 2022, reflecting confirmed exploitation against unpatched Grafana instances.
Affected Versions
| Version | Vulnerable | Fixed |
|---|---|---|
| Grafana 2.x through 7.5.10 | Yes | 7.5.11 |
| Grafana 8.0.x through 8.1.5 | Yes | 8.1.6 |
| Grafana 8.1.6+ | Fixed | N/A |
Technical Details
Grafana's snapshot functionality allows users to create publicly shareable URL versions of dashboards. Each snapshot has a UID that appears in its URL. The vulnerability allows:
- Unauthenticated view: An attacker who guesses or discovers a snapshot UID can view the snapshot data without authenticating to Grafana — even for snapshots intended to be private
- Unauthenticated delete: Grafana also exposes a delete endpoint for snapshots that lacks proper authentication enforcement, allowing deletion of snapshots without credentials
- Data exposure: Snapshots contain rendered metric data from all configured datasources at the time of creation — potentially including sensitive business metrics, infrastructure performance data, and security-relevant signals
Discovery
Identified by the Grafana Labs security team and patched in an emergency release. The 10-month gap between the patch (October 2021) and CISA KEV addition (August 2022) suggests exploitation against internet-accessible Grafana instances was confirmed over time.
Exploitation Context
Grafana is frequently exposed to the internet — either deliberately (for external dashboards) or accidentally (misconfigured deployments). Exposed Grafana instances with unpatched CVE-2021-39226 allow any internet user to view snapshot data containing potentially sensitive infrastructure metrics. The delete functionality could be used to disrupt monitoring capability by destroying snapshots.
Remediation
- Upgrade Grafana to version 7.5.11, 8.1.6, or any later release
- If operating Grafana Cloud, Grafana Labs patched cloud instances automatically
- Disable the snapshot sharing feature if not required: set
[snapshots] external_enabled = falsein grafana.ini - Restrict Grafana access to internal networks or VPN-connected users — Grafana should not be internet-accessible unless specifically required
- Review existing snapshots for sensitive data and delete any that are no longer needed
- Audit Grafana access logs for unauthorized snapshot access attempts
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2021-39226 |
| Vendor / Product | Grafana Labs — Grafana |
| NVD Published | 2021-10-05 |
| NVD Last Modified | 2025-10-24 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-287 find similar ↗ |
| CISA KEV Added | 2022-08-25 |
| CISA KEV Deadline | 2022-09-15 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2021-10-05 | Grafana Labs releases 7.5.11 and 8.1.6 with critical fix; CVE published |
| 2022-08-25 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-09-15 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| Grafana 7.5.11 and 8.1.6 Released — Critical Security Fix (CVE-2021-39226) | Vendor Advisory |
| NVD — CVE-2021-39226 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |