CVE-2021-43813
Directory Traversal in Grafana
Mitigation
- Upgrade grafana to 8.3.2 or later.
Who should check
- Anyone running grafana >= 5.0.0, < 7.5.12; >= 8.0.0, < 8.3.2
Vulnerability facts
- Affected
- grafana >= 5.0.0, < 7.5.12; >= 8.0.0, < 8.3.2
- Fixed in
- grafana 7.5.12, grafana 8.3.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 56.86% chance of exploitation in 30 days (percentile 99, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| grafana | >= 5.0.0, < 7.5.12; >= 8.0.0, < 8.3.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-43813. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-43813.md Affected: grafana >= 5.0.0, < 7.5.12; >= 8.0.0, < 8.3.2 Fixed in: grafana 7.5.12, grafana 8.3.2 Steps: 1. Search this machine and project for grafana: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/github/securitylab-vulnerabilities/commit/689fc5d9fd665be4d5bba200a6a433b532172d0f
- https://github.com/grafana/grafana/commit/fd48aee61e4328aae8d5303a9efd045fa0ca308d
- https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/
- http://www.openwall.com/lists/oss-security/2021/12/10/4
FAQ
Is CVE-2021-43813 being exploited?
There is no confirmed exploitation: CVE-2021-43813 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 56.86% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-43813?
Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2021-43813?
grafana >= 5.0.0, < 7.5.12; >= 8.0.0, < 8.3.2.
Is there a fix for CVE-2021-43813?
Yes. Fixed in grafana 7.5.12, grafana 8.3.2. Upgrade grafana to 8.3.2 or later.
How do I check if I'm affected by CVE-2021-43813?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.