What’s Vulnerable › Vulnerabilities
CVE-2021-31231
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-04-30 · updated 2026-06-17
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.
Affected products
- Grafana Enterprise Metrics: before 1.2.1 — fixed in 1.2.1
How to fix
Upgrade to a fixed version: Grafana Enterprise Metrics 1.2.1. Check the vendor advisory for mitigations.
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/
- 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/
Get alerted when CVE-2021-31231 or the next vulnerability affects your stack