What is Grafana?
Grafana is the world's most popular open-source observability and monitoring dashboard platform, used by organizations of all sizes to visualize metrics, logs, and traces from infrastructure, applications, and databases. Grafana instances typically have access to sensitive monitoring data including database credentials (configured as data sources), API keys, cloud provider credentials, and complete infrastructure monitoring state. Because Grafana is widely deployed with internet-accessible interfaces (for remote monitoring access), and because the server's filesystem may contain sensitive configuration files, path traversal vulnerabilities in Grafana carry significant data exposure risk.
Overview
CVE-2021-43798 is an unauthenticated path traversal vulnerability (CWE-22) in Grafana 8.x affecting the plugin static file serving handler. Grafana's HTTP handler for plugin assets (/public/plugins/<plugin-id>/) serves static files for installed plugins. The path normalization fails to adequately sanitize traversal sequences (../), allowing an unauthenticated attacker to traverse outside the plugin directory and read arbitrary files from the Grafana server's filesystem. Grafana Labs released emergency patches across multiple Grafana 8.x branches on December 7, 2021 — the same day the vulnerability was disclosed. Proof-of-concept exploits circulated on social media within hours, triggering mass scanning.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| Grafana 8.0.x | Yes | 8.0.7 |
| Grafana 8.1.x | Yes | 8.1.8 |
| Grafana 8.2.x | Yes | 8.2.7 |
| Grafana 8.3.0 | Yes | 8.3.1 |
| Grafana 7.x and earlier | Not affected | N/A |
Technical Details
The Grafana web server serves static assets (JavaScript, CSS, images) for installed plugins via a dedicated URL path. The handler fails to properly normalize URL path traversal sequences:
- Root cause: Path traversal (CWE-22) — the plugin file serving handler at
/public/plugins/<plugin-id>/does not sanitize../sequences before constructing the file path, allowing traversal outside the plugin asset directory - No authentication required — plugin static assets are public by design; the handler is accessible without authentication
- File read capability: An attacker can read any file readable by the Grafana process on the server filesystem — typically: Grafana's own
grafana.ini(containing database passwords and secret key), data source configuration files (containing database credentials),/etc/passwd, system configuration files, private key files - Exploitation pattern: A URL like
/public/plugins/alertlist/../../../../etc/passwdreturns the contents of/etc/passwd - Information use: Credentials extracted from Grafana configuration files can be used to access monitored databases, cloud services, and internal APIs directly
Discovery
Reported by Jorgan Holland and others. Grafana Labs took an aggressive immediate-patch approach, releasing fixes across four active Grafana 8.x branches simultaneously on the same day as public disclosure.
Exploitation Context
Grafana is widely deployed in enterprise environments and exposed to the internet for remote monitoring dashboards. The trivially simple nature of the exploit (basic path traversal, no authentication, PoC within hours of disclosure) and Grafana's broad deployment led to mass scanning within 24 hours. CISA added this to KEV in October 2025 — nearly four years after disclosure — reflecting continued exploitation against organizations running unpatched Grafana 8.x instances.
Remediation
- Upgrade Grafana to 8.3.1, 8.2.7, 8.1.8, or 8.0.7 — or any later version
- Rotate all credentials exposed in Grafana configuration files: database passwords, data source API keys, SMTP passwords, and the Grafana secret key
- Review Grafana access logs for requests to
/public/plugins/containing../sequences that may indicate prior exploitation - Restrict external access to the Grafana web interface — Grafana should not be directly internet-accessible without authentication
- Consider Grafana Cloud (hosted) as an alternative to self-hosted Grafana — Grafana Labs patches their cloud service immediately
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2021-43798 |
| Vendor / Product | Grafana Labs — Grafana |
| NVD Published | 2021-12-07 |
| NVD Last Modified | 2025-10-24 |
| CVSS 3.1 Score | 7.5 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Severity | HIGH |
| CWE | CWE-22 find similar ↗ |
| CISA KEV Added | 2025-10-09 |
| CISA KEV Deadline | 2025-10-30 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2021-12-07 | Grafana Labs releases emergency patches 8.3.1, 8.2.7, 8.1.8, and 8.0.7 for CVE-2021-43798; CVE published |
| 2021-12-07 | Proof-of-concept exploits circulate on social media within hours of the advisory |
| 2021-12-08 | Mass scanning for vulnerable Grafana instances observed |
| 2025-10-09 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2025-10-30 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| Grafana Blog — CVE-2021-43798 Emergency Security Fix | Vendor Advisory |
| NVD — CVE-2021-43798 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |