# 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 exp…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2021-04-30T12:34:28.000Z
- Modified: 2026-06-17T03:51:29.300Z
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- grafana enterprise_metrics: before 1.2.1

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://grafana.com/docs/metrics-enterprise/> (product, vendor-advisory)
- <https://community.grafana.com/c/security-announcements> (broken-link, vendor-advisory)
- <https://grafana.com/docs/metrics-enterprise/latest/downloads/#v113----april-27-2021> (release-notes, vendor-advisory)
- <https://grafana.com/docs/metrics-enterprise/latest/downloads/#v121----april-27-2021> (release-notes, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20210611-0001/> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-31231](https://www.cve.org/CVERecord?id=CVE-2021-31231), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-31231](https://nvd.nist.gov/vuln/detail/CVE-2021-31231), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31231 · Whole record: https://cve.day/CVE-2021-31231.json · Rebuilt by cve.day 2026-11-25T22:58:01.119Z
