CVE-2021-43798
Description
Grafana is an open-source platform for monitoring and observability. Grafana versions 8.0.0-beta1 through 8.3.0 (except for patched versions) iss vulnerable to directory traversal, allowing access to local files. The vulnerable URL path is: `<grafana_host_url>/public/plugins//`, where is the plugin ID for any installed plugin. At no time has Grafana Cloud been vulnerable. Users are advised to upgrade to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1. The GitHub Security Advisory contains more information about vulnerable URL paths, mitigation, and the disclosure timeline.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Grafana Path Traversal Vulnerability |
|---|---|
| Vendor / product | Grafana Labs / Grafana |
| Date added | 2025-10-09 |
| Federal remediation due date | 2025-10-30 |
| Required action | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2025-10-09 |
Timeline
- 2021-12-07Published by the CNA18:25 UTC
- 2021-12-09First Exploit-DB entry (EDB-ID 50581)2 days after publication
- 2024-02-01GitHub advisory published (GHSA-8pjx-jj86-j47p)786 days after publication
- 2025-10-09Added to the CISA KEV catalog1402 days after publication
- 2025-10-09CISA SSVC decision recorded1402 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 50581 | webapps | multiple | 2021-12-09 | no |
Nuclei templates:
- CVE-2021-43798: Grafana v8.x - Arbitrary File Read
GitHub advisory GHSA-8pjx-jj86-j47p, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/grafana/grafana | from 8.0.0-beta1 before 8.0.7 | 8.0.7 |
| Go github.com/grafana/grafana | from 8.1.0 before 8.1.8 | 8.1.8 |
| Go github.com/grafana/grafana | from 8.2.0 before 8.2.7 | 8.2.7 |
| Go github.com/grafana/grafana | from 8.3.0 before 8.3.1 | 8.3.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| grafana grafana | from 8.0.1 before 8.0.7fixed in 8.0.7from 8.1.0 before 8.1.8fixed in 8.1.8from 8.2.0 before 8.2.7fixed in 8.2.78.0.0no fix listed8.3.0no fix listed | 8.0.78.1.88.2.7not listednot listed |
References
- http://www.openwall.com/lists/oss-security/2021/12/09/2
- http://www.openwall.com/lists/oss-security/2021/12/10/4
- https://github.com/grafana/grafana/commit/c798c0e958d15d9cc7f27c72113d572fa58545ce
- https://github.com/grafana/grafana/security/advisories/GHSA-8pjx-jj86-j47p
- https://grafana.com/blog/2021/12/08/an-update-on-0day-cve-2021-43798-grafana-directory-traversal/
- http://packetstormsecurity.com/files/165221/Grafana-8.3.0-Directory-Traversal-Arbitrary-File-Read.html
- http://packetstormsecurity.com/files/165198/Grafana-Arbitrary-File-Reading.html
- https://security.netapp.com/advisory/ntap-20211229-0004/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-43798
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-43798'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-43798'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-43798'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-43798'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-43798'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).