Path traversal in Grafana - CVE-2021-43798
Published: December 8, 2021 / Updated: March 2, 2026
Vulnerability details
The vulnerability allows a remote attacker to perform directory traversal attacks.
The vulnerability exists due to input validation error when processing directory traversal sequences, passed after the "/public/plugins/" URL. A remote non-authenticated attacker can send a specially crafted HTTP request and read arbitrary files on the system.
Affected software
Arch Linux
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Desktop 12
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Module for SUSE Manager Server
SUSE Manager Server
SUSE Manager Server Module
SUSE Manager Retail Branch Server
SUSE Manager Proxy Module
SUSE Manager Proxy
SUSE Manager Client Tools Beta for SLE Micro
SUSE Manager Client Tools for SLE Micro
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
SUSE Manager Tools
SUSE Manager Client Tools Beta for SLE
SUSE Manager Client Tools for SLE
SUSE Linux Enterprise Server for the Raspberry Pi
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise High Performance Computing
openSUSE Leap
IBM Watson Machine Learning Accelerator
firewalld-prometheus-config
dracut-saltboot
kiwi-desc-saltboot
golang-github-QubitProducts-exporter_exporter
prometheus-postgres_exporter
golang-github-prometheus-promu
prometheus-blackbox_exporter-debuginfo
prometheus-blackbox_exporter
golang-github-prometheus-alertmanager
golang-github-lusitaniae-apache_exporter
system-user-grafana
system-user-prometheus
golang-github-lusitaniae-apache_exporter-debuginfo
supportutils-plugin-salt
golang-github-prometheus-node_exporter
golang-github-boynux-squid_exporter
golang-github-boynux-squid_exporter-debuginfo
python2-hwdata
python3-hwdata
ansible-doc
ansible
golang-github-prometheus-prometheus
mgr-virtualization-host
python3-mgr-virtualization-host
python3-mgr-virtualization-common
python3-spacewalk-oscap
spacewalk-oscap
mgr-push
python3-mgr-push
suseRegisterInfo
python3-suseRegisterInfo
python3-spacewalk-koan
spacewalk-koan
python3-rhnlib
python3-mgr-cfg-management
python3-mgr-cfg-client
python3-mgr-cfg-actions
python3-mgr-cfg
mgr-cfg-management
mgr-cfg-client
mgr-cfg-actions
mgr-cfg
python3-mgr-osa-common
python3-mgr-osad
mgr-osad
spacecmd
spacewalk-client-setup
spacewalk-client-tools
python3-spacewalk-client-tools
python3-spacewalk-client-setup
python3-spacewalk-check
spacewalk-check
supportutils-plugin-susemanager-client
mgr-custom-info
spacewalk-remote-utils
python2-suseRegisterInfo
python2-uyuni-common-libs
python2-mgr-push
mgr-daemon
python2-rhnlib
python2-mgr-virtualization-host
python2-mgr-virtualization-common
python2-spacewalk-oscap
python2-spacewalk-koan
python2-mgr-cfg-management
python2-mgr-cfg-client
python2-mgr-cfg-actions
python2-mgr-cfg
python2-mgr-osa-common
python2-mgr-osad
python2-spacewalk-client-tools
python2-spacewalk-client-setup
python2-spacewalk-check
uyuni-proxy-systemd-services
python3-uyuni-common-libs
python3-pyvmomi
grafana
grafana-debuginfo
How to mitigate CVE-2021-43798
IBM Watson Machine Learning Accelerator - update to 3.0.0
firewalld-prometheus-config - addressed in versions 0.1-150000.3.53.1, 0.1-159000.6.33.1
dracut-saltboot - update to 0.1.1681904360.84ef141-159000.3.30.1
kiwi-desc-saltboot - update to 0.1.1687520761.cefb248-4.15.2
golang-github-QubitProducts-exporter_exporter - addressed in versions 0.4.0-1.6.1, 0.4.0-4.6.2, 0.4.0-159000.4.6.1
prometheus-postgres_exporter - addressed in versions 0.10.0-1.8.2, 0.10.0-150000.1.3.1, 0.10.1-1.17.2, 0.10.1-3.6.4, 0.10.1-150000.1.17.1, 0.10.1-159000.3.6.1
golang-github-prometheus-promu - update to 0.14.0-4.12.2
prometheus-blackbox_exporter-debuginfo - addressed in versions 0.19.0-1.8.2, 0.24.0-3.6.3
prometheus-blackbox_exporter - addressed in versions 0.19.0-1.8.2, 0.24.0-3.6.3, 0.24.0-159000.3.6.1
golang-github-prometheus-alertmanager - addressed in versions 0.23.0-1.12.3, 0.26.0-1.24.2, 0.26.0-4.12.4
golang-github-lusitaniae-apache_exporter - addressed in versions 1.0.0-1.21.2, 1.0.0-4.12.4, 1.0.0-150000.1.20.1, 1.0.0-159000.4.12.1
system-user-grafana - update to 1.0.0-3.7.2
system-user-prometheus - update to 1.0.0-3.7.2
golang-github-lusitaniae-apache_exporter-debuginfo - addressed in versions 1.0.0-150000.1.20.1, 1.0.0-159000.4.12.1
supportutils-plugin-salt - addressed in versions 1.2.0-6.16.1, 1.2.2-9.9.2, 1.2.2-159000.5.9.1
golang-github-prometheus-node_exporter - addressed in versions 1.3.0-1.15.3, 1.5.0-4.15.4
golang-github-boynux-squid_exporter - addressed in versions 1.6-4.9.2, 1.6-159000.4.9.1
golang-github-boynux-squid_exporter-debuginfo - update to 1.6-159000.4.9.1
python2-hwdata - addressed in versions 2.3.5-12.9.1, 2.3.5-15.12.2
python3-hwdata - update to 2.3.5-159000.5.13.1
ansible-doc - update to 2.9.27-159000.3.9.1
ansible - update to 2.9.27-159000.3.9.1
golang-github-prometheus-prometheus - addressed in versions 2.45.0-1.50.2, 2.45.0-4.33.3, 2.45.0-150000.3.53.1, 2.45.0-159000.6.33.1
mgr-virtualization-host - addressed in versions 4.2.4-150000.1.26.1, 4.3.5-1.29.3
python3-mgr-virtualization-host - update to 4.2.4-150000.1.26.1
python3-mgr-virtualization-common - update to 4.2.4-150000.1.26.1
python3-spacewalk-oscap - update to 4.2.4-150000.3.18.1
spacewalk-oscap - addressed in versions 4.2.4-150000.3.18.1, 4.3.5-19.27.1
mgr-push - addressed in versions 4.2.5-150000.1.18.2, 4.3.4-1.21.4, 5.0.1-4.21.4, 5.0.1-159000.4.21.1
python3-mgr-push - addressed in versions 4.2.5-150000.1.18.2, 5.0.1-159000.4.21.1
suseRegisterInfo - addressed in versions 4.2.6-150000.3.21.1, 4.3.3-25.27.3
python3-suseRegisterInfo - update to 4.2.6-150000.3.21.1
python3-spacewalk-koan - update to 4.2.6-150000.3.27.1
spacewalk-koan - addressed in versions 4.2.6-150000.3.27.1, 4.3.5-24.33.3
python3-rhnlib - addressed in versions 4.2.6-150000.3.34.1, 5.0.1-159000.6.30.1
python3-mgr-cfg-management - update to 4.2.8-150000.1.24.1
python3-mgr-cfg-client - update to 4.2.8-150000.1.24.1
python3-mgr-cfg-actions - update to 4.2.8-150000.1.24.1
python3-mgr-cfg - update to 4.2.8-150000.1.24.1
mgr-cfg-management - addressed in versions 4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg-client - addressed in versions 4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg-actions - addressed in versions 4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg - addressed in versions 4.2.8-150000.1.24.1, 4.3.6-1.27.4
python3-mgr-osa-common - update to 4.2.8-150000.1.36.1
python3-mgr-osad - update to 4.2.8-150000.1.36.1
mgr-osad - addressed in versions 4.2.8-150000.1.36.1, 4.3.6-1.39.4
spacecmd - addressed in versions 4.2.16-150000.3.77.1, 4.3.11-38.103.3, 4.3.26-38.136.2, 4.3.26-150000.3.113.1, 5.0.1-41.42.3, 5.0.1-159000.6.42.1
spacewalk-client-setup - addressed in versions 4.2.18-150000.3.59.1, 4.3.9-52.71.3, 4.3.18-52.95.2, 4.3.18-150000.3.86.2, 5.0.1-159000.6.48.1
spacewalk-client-tools - addressed in versions 4.2.18-150000.3.59.1, 4.3.9-52.71.3, 4.3.18-52.95.2, 4.3.18-150000.3.86.2, 5.0.1-159000.6.48.1
python3-spacewalk-client-tools - addressed in versions 4.2.18-150000.3.59.1, 4.3.18-150000.3.86.2, 5.0.1-159000.6.48.1
python3-spacewalk-client-setup - addressed in versions 4.2.18-150000.3.59.1, 4.3.18-150000.3.86.2, 5.0.1-159000.6.48.1
python3-spacewalk-check - addressed in versions 4.2.18-150000.3.59.1, 4.3.18-150000.3.86.2, 5.0.1-159000.6.48.1
spacewalk-check - addressed in versions 4.2.18-150000.3.59.1, 4.3.9-52.71.3, 4.3.18-52.95.2, 4.3.18-150000.3.86.2, 5.0.1-159000.6.48.1
supportutils-plugin-susemanager-client - addressed in versions 4.3.2-6.24.1, 5.0.1-9.15.2, 5.0.1-159000.6.15.1
mgr-custom-info - update to 4.3.3-1.18.1
spacewalk-remote-utils - update to 4.3.3-24.24.3
python2-suseRegisterInfo - update to 4.3.3-25.27.3
python2-uyuni-common-libs - addressed in versions 4.3.4-1.21.3, 5.0.1-3.33.3
python2-mgr-push - addressed in versions 4.3.4-1.21.4, 5.0.1-4.21.4
mgr-daemon - addressed in versions 4.3.4-1.32.3, 4.3.8-1.44.2, 4.3.8-150000.1.44.1
python2-rhnlib - addressed in versions 4.3.4-21.43.3, 5.0.1-24.30.3
python2-mgr-virtualization-host - update to 4.3.5-1.29.3
python2-mgr-virtualization-common - update to 4.3.5-1.29.3
python2-spacewalk-oscap - update to 4.3.5-19.27.1
python2-spacewalk-koan - update to 4.3.5-24.33.3
python2-mgr-cfg-management - update to 4.3.6-1.27.4
python2-mgr-cfg-client - update to 4.3.6-1.27.4
python2-mgr-cfg-actions - update to 4.3.6-1.27.4
python2-mgr-cfg - update to 4.3.6-1.27.4
python2-mgr-osa-common - update to 4.3.6-1.39.4
python2-mgr-osad - update to 4.3.6-1.39.4
python2-spacewalk-client-tools - addressed in versions 4.3.9-52.71.3, 4.3.18-52.95.2
python2-spacewalk-client-setup - addressed in versions 4.3.9-52.71.3, 4.3.18-52.95.2
python2-spacewalk-check - addressed in versions 4.3.9-52.71.3, 4.3.18-52.95.2
uyuni-proxy-systemd-services - addressed in versions 4.3.10-150000.1.15.1, 5.0.1-159000.3.9.1
python3-uyuni-common-libs - update to 5.0.1-159000.3.33.1
python3-pyvmomi - update to 6.7.3-159000.3.6.1
grafana - update to 8.3.1-1
grafana - addressed in versions 8.3.5-1.30.3, 8.3.5-150000.1.30.1, 8.5.13-150100.3.12.1, 9.5.8-1.60.1, 9.5.8-4.21.2, 9.5.8-150000.1.60.2, 9.5.8-159000.4.24.1
grafana-debuginfo - addressed in versions 8.3.5-150000.1.30.1, 8.5.13-150100.3.12.1, 9.5.8-150000.1.60.2, 9.5.8-159000.4.24.1
Links to Public Exploits and PoC-codes
- Exploit #11145 - CVEpedia (Descrição de vulnerabilidades conhecidas, exploits públicos, POC sobre CVE. Feito exclusivamente para fins didáticos e para o conhecimento sobre as falhas reportadas.) (February 21, 2025)
- Exploit #11096 - Grafana-8.3-Directory-Traversal (CVE-2021-43798 working exploit) (January 31, 2025)
- Exploit #9284 - grafana-exploit-CVE-2021-43798 () (September 4, 2023)
- Exploit #9073 - GrafanaDirectoryScanner (Exploit for grafana CVE-2021-43798) (May 14, 2023)
- Exploit #9008 - CVE-2021-43798 (Grafana - Directory Traversal and Arbitrary File Read) (April 26, 2023)
- Exploit #8775 - LabAutomationCVE-2021-43798 (This script implements a lab automation where I exploit CVE-2021-43798 to steal user secrets and then gain privileges on a Linux system.) (January 29, 2023)
- Exploit #8709 - Grafana_POC-CVE-2021-43798 (Grafana-POC任意文件读取漏洞(CVE-2021-43798)) (January 3, 2023)
- Exploit #8666 - SunScope (Inspired by Ambassador on HackTheBox to exploit the now patched CVE-2021-43798) (December 14, 2022)
- Exploit #8618 - exploit-grafana-CVE-2021-43798 () (November 20, 2022)
- Exploit #8548 - cve-2021-43798 ( cve-2021-43798 Grafana 8.3.0 - Directory Traversal and Arbitrary File Read) (October 29, 2022)
- Exploit #8454 - Grafana_POC-CVE-2021-43798 (Grafana-POC任意文件读取漏洞(CVE-2021-43798)) (October 8, 2022)
- Exploit #8408 - GrafanaDirInclusion (Script to demonstrate the Grafana directory traversal exploit (CVE-2021-43798).) (September 27, 2022)
- Exploit #8325 - Grafana-CVE (a Curated list of Grafana Security Vulnerabilities, CVE & exploit) (September 3, 2022)
- Exploit #7827 - Grafana 8.3.0 - Directory Traversal and Arbitrary File Read (May 13, 2022)
- Exploit #7196 - CVE-2021-43798 () (December 21, 2021)
- Exploit #7191 - Grafana Plugin Path Traversal (December 20, 2021)
- Exploit #7188 - CVE-2021-43798-Grafana-POC (CVE-2021-43798 Grafana 任意文件读取漏洞 POC+参数) (December 19, 2021)
- Exploit #7168 - CVE-2021-43798 (Grafana8.x 任意文件读取) (December 14, 2021)
- Exploit #7165 - exploit-grafana-CVE-2021-43798 (This is a proof-of-concept exploit for Grafana's Unauthorized Arbitrary File Read Vulnerability (CVE-2021-43798).) (December 13, 2021)
- Exploit #7150 - Grafana_POC-CVE-2021-43798 (Grafana-POC任意文件读取漏洞(CVE-2021-43798)) (December 12, 2021)
- Exploit #7147 - Grafana-CVE-2021-43798Exp (CVE-2021-43798Exp多线程批量验证脚本) (December 12, 2021)
- Exploit #7146 - CVE-2021-43798 (CVE-2021-43798 is a vulnerability marked as High priority (CVSS 7.5) leading to arbitrary file read via installed plugins in Grafana application.) (December 12, 2021)
- Exploit #7123 - CVE-2021-43798 () (December 9, 2021)
- Exploit #7121 - CVE-2021-43798 (CVE-2021-43798 - Grafana 8.x Path Traversal (Pre-Auth)) (December 8, 2021)
- Exploit #7120 - CVE-2021-43798 () (December 8, 2021)
- Exploit #7118 - Grafana-CVE-2021-43798 (Grafana File-Read Vuln) (December 8, 2021)
- Exploit #7117 - CVE-2021-43798-grafana_fileread (grafana CVE-2021-43798任意文件读取漏洞POC,采用多插件轮训检测的方法,允许指定单URL和从文件中读取URL) (December 8, 2021)
- Exploit #7116 - CVE-2021-43798-Grafana-Exp (Grafanav8.*版本任意文件读取漏洞批量检测工具:该漏洞目前为0day漏洞,未授权的攻击者利用该漏洞,能够获取服务器敏感文件。) (December 8, 2021)
- Exploit #7115 - CVE-2021-43798 (Grafana Arbitrary File Reading Vulnerability) (December 8, 2021)
- Exploit #7114 - CVE-2021-43798-Grafana-File-Read () (December 8, 2021)
- Exploit #7109 - CVE-2021-43798 (CVE-2021-43798:Grafana 任意文件读取漏洞) (December 8, 2021)
- Exploit #7108 - Grafana-CVE-2021-43798 (Grafana Unauthorized arbitrary file reading vulnerability) (December 8, 2021)
External References
Related Security Bulletins
- Path traversal in Grafana
- SUSE update for SUSE Manager Client Tools
- SUSE update for grafana
- SUSE update for SUSE Manager Client Tools
- Arch Linux update for grafana
- SUSE update for Security Beta update for SUSE Manager Client Tools and Salt
- SUSE update for Security Beta update for SUSE Manager Client Tools
- SUSE update for SUSE Manager Client Tools
- SUSE update for SUSE Manager Client Tools
- Multiple vulnerabilities in IBM Watson Machine Learning Accelerator on Cloud Pak for Data