Path Traversal in Grafana

CVE-2021-43815

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.

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.017 (75.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.

Affected products

  • Grafana — versions >= 8.0.0-beta3, < 8.3.2, >= 5.0.0, < 7.5.12

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-43815?
CVE-2021-43815 is a medium-severity vulnerability in Grafana, classified under Path Traversal. CVSS score: 4.3/10. Published 2021-12-10.
How severe is CVE-2021-43815?
Medium severity. CVSS v3 base score is 4.3 out of 10.
Is CVE-2021-43815 known to be exploited?
3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.