CVE-2021-43815
Grafana directory traversal for `.cvs` files
Reported by github_m · Published December 10, 2021
github.com/grafana/grafana is fixed in 8.3.2 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/grafana/grafana | Go Modules | 8.3.2 |
| grafana | Bitnami | 8.3.2, 7.5.12 |
| grafana | dhi.docker.com | 8.3.2 |
| grafana | grafana | 8.3.2, 7.5.12 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| grafana | grafana | >= 8.0.0-beta3, < 8.3.2, >= 5.0.0, < 7.5.12 |
| github.com | grafana/grafana | 8.0.0-beta3 |
| grafana | grafana | 8.0.0-beta3, 5.0.0 |
| alpine | grafana | 0 |
| arch | grafana | 0 |
Timeline
- Dec 10, 2021 CVE Published
- Dec 11, 2021 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (4 in total, the first dated here)
- Mar 17, 2026 Distribution Patch (3 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Jul 17, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-43815
vulnetix vdb fixes CVE-2021-43815
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-43815/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- [oss-security] 20211210 CVE-2021-43813 and CVE-2021-43815 - Grafana directory traversal for some .md and .csv files mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2021-43815 advisory
- https://github.com/advisories/GHSA-7533-c8qv-jm9m advisory
- https://github.com/grafana/grafana url
- https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix url
- https://security.netapp.com/advisory/ntap-20220107-0006 advisory