{"id":"CVE-2021-43798","published":"2021-12-07T19:15:07Z","modified":"2026-06-17T04:11:27Z","title":"Grafana Path Traversal Vulnerability","vendor":"Grafana Labs","product":"Grafana","tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"NVD"},"summary":{"text":"A path traversal flaw in Grafana, the open-source monitoring and observability platform, affects versions 8.0.0-beta1 through 8.3.0 excluding the patched releases, through the public plugins path /public/plugins/<plugin-id>/ where a crafted plugin ID value allows the path to escape its intended directory. An unauthenticated remote attacker who can send HTTP requests to a vulnerable Grafana instance can read arbitrary local files on the server, with no user interaction or authentication required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-31T04:54:39Z"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"NVD"},"epss":{"score":0.88503,"percentile":0.99771,"date":"2026-10-30","provenance":"source"},"kev":{"dateAdded":"2025-10-09","dueDate":"2025-10-30","ransomware":false,"requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","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","provenance":"source"},"vulncheckKev":{"dateAdded":"2023-12-02","exploitedFirstSeen":"2023-12-02","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-02&host_type=src&vulnerability=cve-2021-43798","date":"2023-12-02"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-24&host_type=src&vulnerability=cve-2021-43798","date":"2023-12-24"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-22&host_type=src&vulnerability=cve-2021-43798","date":"2024-01-22"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-24&host_type=src&vulnerability=cve-2021-43798","date":"2024-01-24"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-28&host_type=src&vulnerability=cve-2021-43798","date":"2024-01-28"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-30&host_type=src&vulnerability=cve-2021-43798","date":"2024-01-30"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-02-01&host_type=src&vulnerability=cve-2021-43798","date":"2024-02-01"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-02-03&host_type=src&vulnerability=cve-2021-43798","date":"2024-02-03"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-02-08&host_type=src&vulnerability=cve-2021-43798","date":"2024-02-08"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-02-14&host_type=src&vulnerability=cve-2021-43798","date":"2024-02-14"}],"evidenceTotal":240,"provenance":"source"},"exploited":true,"otx":{"pulseCount":50,"pulses":[{"name":"Actively_Exploited_Kev | Oct 29, 2026","url":"https://otx.alienvault.com/pulse/6ae20c1db17e7057ae7d9ad1","created":"2026-10-28"},{"name":"Actively_Exploited_Kev | Oct 28, 2026","url":"https://otx.alienvault.com/pulse/6ae0ba7e0e2a97ff7b218819","created":"2026-10-27"},{"name":"Actively_Exploited_Kev | Oct 27, 2026","url":"https://otx.alienvault.com/pulse/6adf68b85c3e852f3c111d18","created":"2026-10-26"},{"name":"Actively_Exploited_Kev | Oct 24, 2026","url":"https://otx.alienvault.com/pulse/6adb740e397c3ad4799aa4cd","created":"2026-10-23"},{"name":"Actively_Exploited_Kev | Oct 23, 2026","url":"https://otx.alienvault.com/pulse/6ada236fcfba2dfa730ea482","created":"2026-10-22"},{"name":"Actively_Exploited_Kev | Oct 22, 2026","url":"https://otx.alienvault.com/pulse/6ad8d33a077cbb5cab524d80","created":"2026-10-21"},{"name":"Actively_Exploited_Kev | Oct 21, 2026","url":"https://otx.alienvault.com/pulse/6ad78130c4d1ac2be83a8b6d","created":"2026-10-20"},{"name":"Actively_Exploited_Kev | Oct 20, 2026","url":"https://otx.alienvault.com/pulse/6ad62f63c24a405a3423cc13","created":"2026-10-19"},{"name":"Actively_Exploited_Kev | Oct 19, 2026","url":"https://otx.alienvault.com/pulse/6ad4dda174e5797d0bd238b7","created":"2026-10-18"},{"name":"Actively_Exploited_Kev | Oct 18, 2026","url":"https://otx.alienvault.com/pulse/6ad38c22e1848f8189d1c121","created":"2026-10-17"}],"provenance":"machine"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"http://packetstormsecurity.com/files/165198/Grafana-Arbitrary-File-Reading.html","tags":["Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/165221/Grafana-8.3.0-Directory-Traversal-Arbitrary-File-Read.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/09/2","tags":["Mailing List","Patch","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/10/4","tags":["Mailing List","Patch","Third Party Advisory"]},{"url":"https://github.com/grafana/grafana/commit/c798c0e958d15d9cc7f27c72113d572fa58545ce","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/grafana/grafana/security/advisories/GHSA-8pjx-jj86-j47p","tags":["Patch","Vendor Advisory"]},{"url":"https://grafana.com/blog/2021/12/08/an-update-on-0day-cve-2021-43798-grafana-directory-traversal/","tags":["Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20211229-0004/","tags":["Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/165198/Grafana-Arbitrary-File-Reading.html","tags":["Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/165221/Grafana-8.3.0-Directory-Traversal-Arbitrary-File-Read.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/09/2","tags":["Mailing List","Patch","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/12/10/4","tags":["Mailing List","Patch","Third Party Advisory"]},{"url":"https://github.com/grafana/grafana/commit/c798c0e958d15d9cc7f27c72113d572fa58545ce","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/grafana/grafana/security/advisories/GHSA-8pjx-jj86-j47p","tags":["Patch","Vendor Advisory"]},{"url":"https://grafana.com/blog/2021/12/08/an-update-on-0day-cve-2021-43798-grafana-directory-traversal/","tags":["Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20211229-0004/","tags":["Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-43798","tags":["US Government Resource"]}],"techniques":[{"id":"T1190","name":"Exploit Public-Facing Application","tactics":["initial-access"],"provenance":"ai","basis":"ai-mapping","bases":["ai-mapping"],"basisDetail":"claude-haiku-5-5: Unauthenticated HTTP request exploits public-facing Grafana web path","mappingType":"exploitation_technique","evidence":[{"from":"description","quote":"vulnerable to directory traversal, allowing access to local files","start":146,"end":211}],"model":"claude-haiku-5-5","confidence":"medium","confidenceNote":"AI-mapped from the description (quote-validated, not expert-reviewed)"},{"id":"T1005","name":"Data from Local System","tactics":["collection"],"provenance":"ai","basis":"ai-mapping","bases":["ai-mapping"],"basisDetail":"claude-haiku-5-5: Traversal reads arbitrary local files from host","mappingType":"primary_impact","evidence":[{"from":"description","quote":"allowing access to local files","start":181,"end":211}],"model":"claude-haiku-5-5","confidence":"medium","confidenceNote":"AI-mapped from the description (quote-validated, not expert-reviewed)"}],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/grafana/grafana","vulnerableRanges":[">=8.3.0, <8.3.1",">=8.2.0, <8.2.7",">=8.1.0, <8.1.8",">=8.0.0-beta1, <8.0.7"],"patched":["8.3.1","8.2.7","8.1.8","8.0.7"],"from":["GHSA-8pjx-jj86-j47p"],"provenance":"source"}],"advisories":[{"id":"GHSA-8pjx-jj86-j47p","url":"https://github.com/advisories/GHSA-8pjx-jj86-j47p","severity":"HIGH","ecosystem":"Go","package":"github.com/grafana/grafana","vulnerableRanges":[">=8.3.0, <8.3.1"],"patched":["8.3.1"],"provenance":"source","from":"GHSA"},{"id":"GHSA-8pjx-jj86-j47p","url":"https://github.com/advisories/GHSA-8pjx-jj86-j47p","severity":"HIGH","ecosystem":"Go","package":"github.com/grafana/grafana","vulnerableRanges":[">=8.2.0, <8.2.7"],"patched":["8.2.7"],"provenance":"source","from":"GHSA"},{"id":"GHSA-8pjx-jj86-j47p","url":"https://github.com/advisories/GHSA-8pjx-jj86-j47p","severity":"HIGH","ecosystem":"Go","package":"github.com/grafana/grafana","vulnerableRanges":[">=8.1.0, <8.1.8"],"patched":["8.1.8"],"provenance":"source","from":"GHSA"},{"id":"GHSA-8pjx-jj86-j47p","url":"https://github.com/advisories/GHSA-8pjx-jj86-j47p","severity":"HIGH","ecosystem":"Go","package":"github.com/grafana/grafana","vulnerableRanges":[">=8.0.0-beta1, <8.0.7"],"patched":["8.0.7"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-0581","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0581","exploited":true,"exploitedSince":"2025-10-09","provenance":"source"},"exploits":[{"id":50581,"url":"https://www.exploit-db.com/exploits/50581","title":"Grafana 8.3.0 - Directory Traversal and Arbitrary File Read","type":"webapps","platform":"multiple","date":"2021-12-09","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2021-12-09"},"pocGithub":{"count":46,"skipped":12,"earliest":"2021-12-06","earliestUrl":"https://github.com/taythebot/CVE-2021-43798","repos":[{"name":"jas502n/Grafana-CVE-2021-43798","url":"https://github.com/jas502n/Grafana-CVE-2021-43798","stars":370,"created":"2021-12-07"},{"name":"A-D-Team/grafanaExp","url":"https://github.com/A-D-Team/grafanaExp","stars":270,"created":"2021-12-07"},{"name":"pedrohavay/exploit-grafana-CVE-2021-43798","url":"https://github.com/pedrohavay/exploit-grafana-CVE-2021-43798","stars":46,"created":"2021-12-11"},{"name":"taythebot/CVE-2021-43798","url":"https://github.com/taythebot/CVE-2021-43798","stars":43,"created":"2021-12-06"},{"name":"zer0yu/CVE-2021-43798","url":"https://github.com/zer0yu/CVE-2021-43798","stars":27,"created":"2021-12-07"}]},"metasploit":[{"name":"Grafana Plugin Path Traversal","module":"auxiliary/scanner/http/grafana_plugin_traversal","type":"auxiliary","disclosureDate":"2021-12-02","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/grafana_plugin_traversal.rb"}],"nuclei":[{"id":"CVE-2021-43798","name":"Grafana v8.x - Arbitrary File Read","severity":"high","path":"http/cves/2021/CVE-2021-43798.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-43798.yaml"}],"first":{"date":"2021-12-02","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/grafana_plugin_traversal.rb"},"provenance":"source"},"detections":{"cveRules":[{"title":"Grafana Path Traversal Exploitation CVE-2021-43798","id":"7b72b328-5708-414f-9a2a-6a6867c26e16","level":"critical","status":"test","path":"rules-emerging-threats/2021/Exploits/CVE-2021-43798/web_cve_2021_43798_grafana.yml","url":"https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2021/Exploits/CVE-2021-43798/web_cve_2021_43798_grafana.yml","techniques":["T1190"]}]},"exploitRefs":["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"],"flow":[{"stage":"exploitation","techniques":["T1190"],"provenance":"ai"},{"stage":"primary","techniques":["T1005"],"provenance":"ai"}],"timeline":[{"date":"2021-12-02","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2021-12-06, Exploit-DB 2021-12-09","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/grafana_plugin_traversal.rb","provenance":"source"},{"date":"2021-12-07","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43798","provenance":"source"},{"date":"2023-12-02","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-02&host_type=src&vulnerability=cve-2021-43798","provenance":"source"},{"date":"2025-10-09","kind":"kev","label":"Added to CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","provenance":"source"},{"date":"2025-10-09","kind":"euvd-exploited","label":"ENISA EUVD: exploited","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0581","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":1402},"priority":{"score":68.2,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in CISA KEV and VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1064 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.95,"detail":"percentile 0.9977"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 1 Exploit-DB entry; 1 NVD exploit link; 46 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"50 pulses"},{"name":"CVSS severity","points":5.25,"detail":"base score 7.5"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-grafana-cve-2021-43798","children":[{"from":"CVE-2021-43798","to":"CVE-2021-43815","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/grafana/grafana","fromFixed":"8.3.1","toFixed":"8.3.2","daysApart":3},{"kind":"same-code","provenance":"machine","files":["pkg/api/plugins.go"],"commits":["https://github.com/grafana/grafana/commit/c798c0e958d15d9cc7f27c72113d572fa58545ce","https://github.com/grafana/grafana/commit/fd48aee61e4328aae8d5303a9efd045fa0ca308d","https://github.com/grafana/grafana/commit/d6ec6f8ad28f0212e584406730f939105ff6c6d3"],"basis":"rarely changed file"}]},{"from":"CVE-2021-43798","to":"CVE-2023-22462","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/api/plugins.go"],"commits":["https://github.com/grafana/grafana/commit/c798c0e958d15d9cc7f27c72113d572fa58545ce","https://github.com/grafana/grafana/commit/db83d5f398caffe35c5846cfa7727d1a2a414165"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2021-27358","published":"2021-03-18","fixed":"7.4.2","kev":false},{"cve":"CVE-2021-39226","published":"2021-10-05","fixed":"8.1.6","kev":true,"link":{"from":"CVE-2021-39226","to":"CVE-2021-43798","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/grafana/grafana","fromFixed":"8.1.6","toFixed":"8.1.8","daysApart":63}]}},{"cve":"CVE-2021-41244","published":"2021-11-15","fixed":"8.2.4","kev":false,"link":{"from":"CVE-2021-41244","to":"CVE-2021-43798","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/grafana/grafana","fromFixed":"8.2.4","toFixed":"8.2.7","daysApart":22}]}},{"cve":"CVE-2021-43798","published":"2021-12-07","fixed":"8.3.1","kev":true},{"cve":"CVE-2021-43815","published":"2021-12-10","fixed":"8.3.2","kev":false},{"cve":"CVE-2022-21702","published":"2022-02-08","fixed":"8.3.5","kev":false},{"cve":"CVE-2022-21713","published":"2022-02-08","fixed":"8.3.5","kev":false}],"package":"Go:github.com/grafana/grafana"}}