Actively exploited · Published Dec 7, 2021 · Assigned by GitHub_M
CVE-2021-43798Grafana path traversal
High 7.5 Exploited
In plain English
A high-severity path traversal in grafana from grafana. Attackers are actively exploiting it in the wild (listed by CISA on October 9, 2025). The chance it is exploited in the next 30 days is estimated at 88.5% (higher than 99.8% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Federal agencies must remediate by Oct 30, 2025.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | grafana | 8.3.1-r0 | ALPINE-CVE-2021-43798 |
| Alpine:v3.21 | grafana | 8.3.1-r0 | ALPINE-CVE-2021-43798 |
| Alpine:v3.22 | grafana | 8.3.1-r0 | ALPINE-CVE-2021-43798 |
| Alpine:v3.23 | grafana | 8.3.1-r0 | ALPINE-CVE-2021-43798 |
| Alpine:v3.24 | grafana | 8.3.1-r0 | ALPINE-CVE-2021-43798 |
| Go | github.com/grafana/grafana | 8.3.1 | GHSA-8pjx-jj86-j47p |
| Go | github.com/grafana/grafana | 8.2.7 | GHSA-8pjx-jj86-j47p |
| Go | github.com/grafana/grafana | 8.1.8 | GHSA-8pjx-jj86-j47p |
| Go | github.com/grafana/grafana | 8.0.7 | GHSA-8pjx-jj86-j47p |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/grafana/grafana/security/advisories/GHSA-8pjx-jj86-j47p x_refsource_CONFIRM
- https://github.com/grafana/grafana/commit/c798c0e958d15d9cc7f27c72113d572fa58545ce x_refsource_MISC
- http://packetstormsecurity.com/files/165198/Grafana-Arbitrary-File-Reading.html x_refsource_MISC
- https://grafana.com/blog/2021/12/08/an-update-on-0day-cve-2021-43798-grafana-directory-traversal/ x_refsource_CONFIRM
- http://packetstormsecurity.com/files/165221/Grafana-8.3.0-Directory-Traversal-Arbitrary-File-Read.html x_refsource_MISC
- [oss-security] 20211209 CVE-2021-43798 Grafana directory traversal mailing-list, x_refsource_MLIST
- [oss-security] 20211210 CVE-2021-43813 and CVE-2021-43815 - Grafana directory traversal for some .md and .csv files mailing-list, x_refsource_MLIST
- https://security.netapp.com/advisory/ntap-20211229-0004/ x_refsource_CONFIRM
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-43798 government-resource