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.
Summary dbcve.org
Grafana versions 8.0.0-beta1 through 8.3.0 contain a directory traversal vulnerability in the plugin static file serving endpoint. Attackers can manipulate the plugin ID in the URL path `/public/plugins/<plugin_id>/` with traversal sequences (e.g., `../../`) to read arbitrary local files on the server, bypassing intended plugin directory restrictions.
Mitigation
Upgrade Grafana to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1 (or later) to remediate this path traversal vulnerability.