CVE-2021-31231
CVE-2021-31231 is a medium-severity vulnerability in Grafana Enterprise Metrics with a CVSS 3.x base score of 5.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low.
Key facts
- Severity: Medium (CVSS 3.x base score 5.5)
- CVSS v2: 2.1
- EPSS exploit prediction: 0% (20th percentile)
- Actively exploited: Not listed in CISA KEV
- Affected product: Grafana Enterprise Metrics
- Published:
- Last modified:
Description
The Alertmanager in Grafana Enterprise Metrics before 1.2.1 and Metrics Enterprise 1.2.1 has a local file disclosure vulnerability when experimental.alertmanager.enable-api is used. The HTTP basic auth password_file can be used as an attack vector to send any file content via a webhook. The alertmanager templates can be used as an attack vector to send any file content because the alertmanager can load any text file specified in the templates list.
Frequently asked questions
- What is CVE-2021-31231?
- The Alertmanager in Grafana Enterprise Metrics before 1.2.1 and Metrics Enterprise 1.2.1 has a local file disclosure vulnerability when experimental.alertmanager.enable-api is used. The HTTP basic auth password_file can be used as an attack vector to send any file content via a webhook. The alertmanager templates can be used as an attack vector to send any file content because the alertmanager can load any text file specified in the templates list.
- How severe is CVE-2021-31231?
- CVE-2021-31231 has a CVSS 3.x base score of 5.5, rated medium severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2021-31231 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (20th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-31231?
- CVE-2021-31231 primarily affects Grafana Enterprise Metrics. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-31231?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-31231 published?
- CVE-2021-31231 was published on 2021-04-30 and last updated on 2026-06-17.
References
- https://community.grafana.com/c/security-announcements
- https://grafana.com/docs/metrics-enterprise/
- https://grafana.com/docs/metrics-enterprise/latest/downloads/#v113----april-27-2021
- https://grafana.com/docs/metrics-enterprise/latest/downloads/#v121----april-27-2021
- https://security.netapp.com/advisory/ntap-20210611-0001/
Affected products (2)
- cpe:2.3:a:grafana:enterprise_metrics:*:*:*:*:*:*:*:*
- cpe:2.3:a:grafana:enterprise_metrics:*:*:*:*:enterprise:*:*:*
More vulnerabilities in Grafana Enterprise Metrics
- CVE-2022-44643 — Medium (CVSS 5.7): A vulnerability in the label-based access control of Grafana Labs Grafana Enterprise Metrics allows an attacker more…