CVE-2021-43813: Directory Traversal in Grafana

Published Dec 10, 2021
·
Updated

GitHub Security Labs notified us that there’s a limited directory traversal attack against Grafana 8.3.1 which allows access to '.md' files. During our internal follow-up investigation, we found an attack allowing access to .csv files. The vulnerable URL path is: '/api/plugins/./markdown/.'

Other sources

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.

Affected Software

5 affected componentsFixes available
redhat/grafana<0:7.5.11-2.el8
0:7.5.11-2.el8
redhat/grafana<8.3.2
8.3.2
redhat/grafana<7.5.12
7.5.12
Grafana Grafana>=5.0.0<7.5.12
Grafana Grafana>=8.0.0<8.3.2

Event History

Dec 10, 2021
CVE Published
12:00 AM
CVE Published
via MITRE·05:30 PM
Data Sourced
via MITRE·05:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-43813?

CVE-2021-43813 is a directory traversal vulnerability in Grafana prior to versions 8.3.2 and 7.5.12.

2

How severe is CVE-2021-43813?

CVE-2021-43813 has a severity rating of 4.3 (medium).

3

Which software versions are affected by CVE-2021-43813?

Grafana versions 8.3.2 and 7.5.12, as well as versions earlier than 7.5.12 and between 7.5.12 and 8.3.2, are affected by CVE-2021-43813.

4

What is the remedy for CVE-2021-43813?

The remedy for CVE-2021-43813 is to upgrade to Grafana version 8.3.2 or 7.5.12, depending on the current version being used.

5

How can I learn more about CVE-2021-43813?

You can find more information about CVE-2021-43813 at the following references: [CVE-2021-43813 on CVE](https://www.cve.org/CVERecord?id=CVE-2021-43813), [CVE-2021-43813 on NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-43813), [Grafana 8.3.2 and 7.5.12 Release Notes](https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/), [Bugzilla Red Hat Bug Report](https://bugzilla.redhat.com/show_bug.cgi?id=2031228), [Red Hat Security Advisory](https://access.redhat.com/errata/RHSA-2022:6024).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203