CVE-2021-43798
Grafana path traversal
Check your servers for CVE-2021-43798
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-43798 affects grafana, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Known exploited
CISA added this CVE to its list of known exploited vulnerabilities on 9 Oct 2025. US federal agencies had to act by 30 Oct 2025.
- Name
- Grafana Path Traversal Vulnerability
- 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.
- Ransomware
- Use in ransomware campaigns is not known
- Notes
- https://grafana.com/blog/2021/12/07/grafana-8.3.1-8.2.7-8.1.8-and-8.0.7-released-with-high-severity-security-fix/ https://nvd.nist.gov/vuln/detail/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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 88.5%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 9 Oct 2025):
- Exploitation
- active: CISA has reliable evidence of exploitation in the wild
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| grafana |
affected >= 8.0.0, < 8.0.7 affected >= 8.1.0, < 8.1.8 affected >= 8.2.0, < 8.2.7 affected = 8.3.0
|
Is my server affected?
Find the installed version of grafana and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i grafana
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-43798 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-43798RHEL, Rocky, Alma, Fedora
rpm -q grafana
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-43798Alpine
apk list --installed | grep -i grafanaWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-43798
trivy image --scanners vuln IMAGE | grep CVE-2021-43798
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/grafana/grafana/security/advisories/GHSA-8pjx-jj86-j47p github.com
- https://grafana.com/blog/2021/12/08/an-update-on-0day-cve-2021-43798-grafana-directory-traversal/ grafana.com
- https://security.netapp.com/advisory/ntap-20211229-0004/ security.netapp.com
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-43798 cisa.gov · government resource
Other references
- https://github.com/grafana/grafana/commit/c798c0e958d15d9cc7f27c72113d572fa58545ce github.com
- http://packetstormsecurity.com/files/165198/Grafana-Arbitrary-File-Reading.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165221/Grafana-8.3.0-Directory-Traversal-Arbitrary-File-Read.html packetstormsecurity.com
- [oss-security] 20211209 CVE-2021-43798 Grafana directory traversal openwall.com · mailing list
- [oss-security] 20211210 CVE-2021-43813 and CVE-2021-43815 - Grafana directory traversal for some .md and .csv files openwall.com · mailing list
Source: the record CVE-2021-43798 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse