Path Traversal in Grafana
CVE-2021-43813
Grafana is an open-source platform for monitoring and observability. Grafana prior to versions 8.3.2 and 7.5.12 contains a directory traversal vulnerability for fully lowercase or fully uppercase .md files. The vulnerability is limited in scope, and only allows access to files with the extension .md to authenticated users only. Grafana Cloud instances have not been affected by the vulnerability. Users should upgrade to patched versions 8.3.2 or 7.5.12. For users who cannot upgrade, running a reverse proxy in front of Grafana that normalizes the PATH of the request will mitigate the vulnerability. The proxy will have to also be able to handle url encoded paths. Alternatively, for fully lowercase or fully uppercase .md files, users can block /api/plugins/.*/markdown/.* without losing any functionality beyond inlined plugin help text.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.575 (99.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
Affected products
- Grafana — versions >= 5.0.0, < 7.5.12, >= 8.0.0, < 8.3.2
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Patch, Third Party Advisory, Release Notes)
- security-advisories@github.com (x_refsource_MISC, Broken Link)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (Patch, x_refsource_MISC, Release Notes, Vendor Advisory)
- security-advisories@github.com (x_refsource_MISC, Release Notes, Vendor Advisory)
- security-advisories@github.com (x_refsource_MISC, Release Notes, Vendor Advisory)
- security-advisories@github.com (mailing-list, x_refsource_MLIST, Patch, Mailing List, Third Party Advisory, Release Notes)
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-43813?
- CVE-2021-43813 is a medium-severity vulnerability in Grafana, classified under Path Traversal. CVSS score: 4.3/10. Published 2021-12-10.
- How severe is CVE-2021-43813?
- Medium severity. CVSS v3 base score is 4.3 out of 10.