CVE-2021-43815
Grafana directory traversal for `.cvs` files
Also known as BIT-grafana-2021-43815, GHSA-7533-c8qv-jm9m
Mitigation
- Upgrade github.com/grafana/grafana to 8.3.2 or later.
Who should check
- Projects that depend on Go package github.com/grafana/grafana (>= 8.0.0-beta3, < 8.3.2)
- Anyone running grafana >= 8.0.0-beta3, < 8.3.2; >= 5.0.0, < 7.5.12
Vulnerability facts
- Affected
- github.com/grafana/grafana >= 8.0.0-beta3, < 8.3.2
- Fixed in
- 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
- 1.87% chance of exploitation in 30 days (percentile 80, 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 has a directory traversal for arbitrary .csv files. It only affects instances that have the developer testing tool called TestData DB data source enabled and configured. The vulnerability is limited in scope, and only allows access to files with the extension .csv to authenticated users only. Grafana Cloud instances have not been affected by the vulnerability. Versions 8.3.2 and 7.5.12 contain a patch for this issue. There is a workaround available 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/grafana/grafana | >= 8.0.0-beta3, < 8.3.2 | 8.3.2 | osv |
| grafana | >= 8.0.0-beta3, < 8.3.2; >= 5.0.0, < 7.5.12 | — | 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-43815. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-43815.md Affected: github.com/grafana/grafana >= 8.0.0-beta3, < 8.3.2 Fixed in: 8.3.2 Steps: 1. Search this machine and project for github.com/grafana/grafana (Go), 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/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/
- https://github.com/grafana/grafana/commit/d6ec6f8ad28f0212e584406730f939105ff6c6d3
- http://www.openwall.com/lists/oss-security/2021/12/10/4
Other
- https://github.com/grafana/grafana/releases/tag/v8.3.2
- https://security.netapp.com/advisory/ntap-20220107-0006/
- https://github.com/grafana/grafana
- https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix
- https://security.netapp.com/advisory/ntap-20220107-0006
FAQ
Is CVE-2021-43815 being exploited?
There is no confirmed exploitation: CVE-2021-43815 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.87% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-43815?
Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2021-43815?
github.com/grafana/grafana >= 8.0.0-beta3, < 8.3.2.
Is there a fix for CVE-2021-43815?
Yes. Fixed in 8.3.2. Upgrade github.com/grafana/grafana to 8.3.2 or later.
How do I check if I'm affected by CVE-2021-43815?
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.