CVE-2021-43813
grafana: directory traversal vulnerability
Overview
Description
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.
Source: OX vulnerability database
Severity
4.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weakness: CWE-22
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | grafana | >=5.0.0, <7.5.12>=8.0.0, <8.3.2 | 7.5.128.3.2 |
Open a package to see all its vulnerabilities.
Operating systems · 14 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | grafana | 7.5.11-2.el8 |
Red Hat 3 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| grafana | affected | — | |
| 7 | grafana | eol | — |
| 8 | servicemesh-grafana +1 | affected | — |
| 8 | grafana | 0:7.5.11-2.el8 | RHSA-2022:1781 |
SUSE Linux Enterprise 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | golang-github-prometheus-node-exporter | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| 15.4 | grafana | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
alma 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | grafana | 7.5.11-2.el8 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | grafana | 8.3.2-r0 |
| 3.23 | grafana | 8.3.2-r0 |
| 3.24 | grafana | 8.3.2-r0 |
| edge | grafana | 8.3.2-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | grafana | 7.5.12-1.1 | openSUSE-SU-2024:11694-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | grafana | 7.5.11-2.el8 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2021/12/10/4
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-43813.json
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-43813
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2022-1781.html
- github.com https://github.com/github/securitylab-vulnerabilities/commit/689fc5d9fd665be4d5bba200a6a433b532172d0f
- github.com https://github.com/grafana/grafana/commit/fd48aee61e4328aae8d5303a9efd045fa0ca308d
- github.com https://github.com/grafana/grafana/security/advisories/GHSA-c3q8-26ph-9g2q
- grafana.com https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/
- grafana.com https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-12/
- grafana.com https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-3-2/
Show all 15 references
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-43813.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-1781.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-43813
- security.netapp.com https://security.netapp.com/advisory/ntap-20220107-0006/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-43813
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.