cve.bz

CVE-2021-43815 grafana grafana: Path traversal

4.3 mediumEPSS 1.9%Fix available

Medium (4.3) in grafana grafana. EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/grafana/grafana 8.3.2.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-43815 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-43815?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-43815?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-43815 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
grafana:grafanabefore 7.5.12
grafana:grafanafrom 8.0.0 before 8.3.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7533-c8qv-jm9mGogithub.com/grafana/grafana>=8.0.0-beta3 <8.3.28.3.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSgrafanano fix listedUBUNTU-CVE-2021-43815
SUSEEnterprise Storage 6grafana8.5.13-150100.3.12.1SUSE-SU-2022:3676-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 10 moregolang-github-prometheus-node_exporter1.3.0-1.15.3SUSE-SU-2022:2134-1
SUSELinux Enterprise Module for Package Hub 15 SP4grafana8.5.13-150200.3.29.5SUSE-SU-2022:4428-1
SUSEManager Client Tools 12golang-github-QubitProducts-exporter_exporter0.4.0-1.6.1SUSE-SU-2022:2134-1
SUSEManager Client Tools 12golang-github-boynux-squid_exporter1.6-1.9.1SUSE-SU-2022:4439-1
SUSEManager Client Tools 12golang-github-lusitaniae-apache_exporter1.0.0-1.21.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12golang-github-prometheus-alertmanager0.23.0-1.12.3SUSE-SU-2022:2134-1
SUSEManager Client Tools 12golang-github-prometheus-alertmanager0.26.0-1.24.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12golang-github-prometheus-prometheus2.45.0-1.50.2SUSE-SU-2024:0486-1
SUSEManager Client Tools 12grafana8.3.5-1.30.3SUSE-SU-2022:2134-1
SUSEManager Client Tools 12grafana8.5.13-1.36.2SUSE-SU-2022:4439-1
SUSEManager Client Tools 12grafana9.5.8-1.60.1SUSE-SU-2024:0486-1
91 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3prometheus-postgres_exporter0.10.0-150000.1.3.1SUSE-SU-2022:1396-1
openSUSELeap 15.3rhnlib4.2.6-150000.3.34.1SUSE-SU-2022:1396-1
openSUSELeap 15.3spacecmd4.2.16-150000.3.77.1SUSE-SU-2022:1396-1
openSUSELeap 15.3, Leap 15.4dracut-saltboot0.1.1665997480.587fa10-150000.1.41.1SUSE-SU-2022:4437-1
openSUSELeap 15.3, Leap 15.4golang-github-boynux-squid_exporter1.6-150000.1.9.1SUSE-SU-2022:4437-1
openSUSELeap 15.3, Leap 15.4golang-github-prometheus-promu0.13.0-150000.3.9.1SUSE-SU-2022:4437-1
openSUSELeap 15.3, Leap 15.4grafana8.3.5-150200.3.21.1SUSE-FU-2022:1419-1
openSUSELeap 15.3, Leap 15.4grafana8.5.13-150200.3.29.5SUSE-SU-2022:4428-1
openSUSELeap 15.3, Leap 15.4spacecmd4.3.16-150000.3.89.1SUSE-SU-2022:4437-1
openSUSELeap 15.4prometheus-blackbox_exporter0.19.0-150000.1.14.3SUSE-SU-2022:4437-1
openSUSELeap 15.4wire0.5.0-150000.1.9.3SUSE-SU-2022:4437-1
openSUSELeap 15.5golang-github-lusitaniae-apache_exporter1.0.0-150000.1.20.1SUSE-SU-2024:0487-1
3 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.16, v3.17, v3.18 and 6 moregrafana8.3.2-r0ALPINE-CVE-2021-43815

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.1servicemesh-grafanaAffected
Red Hat Advanced Cluster Management for Kubernetes 2grafanaNot affected
Red Hat Ceph Storage 2grafanaOut of support scope
Red Hat Ceph Storage 3grafanaOut of support scope
Red Hat Ceph Storage 3grafana-containerOut of support scope
Red Hat Ceph Storage 4rhceph/rhceph-4-dashboard-rhel8Not affected
Red Hat Ceph Storage 5rhceph/rhceph-5-dashboard-rhel8Not affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat OpenShift Container Platform 3.11openshift3/grafanaNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-grafanaNot affected
Red Hat Storage 3grafanaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-43815.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON