CVE-2021-31231

medium

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.

References

https://security.netapp.com/advisory/ntap-20210611-0001/

https://grafana.com/docs/metrics-enterprise/latest/downloads/#v121----april-27-2021

https://grafana.com/docs/metrics-enterprise/latest/downloads/#v113----april-27-2021

https://grafana.com/docs/metrics-enterprise/

https://community.grafana.com/c/security-announcements

Details

Source: Mitre, NVD

Published: 2021-04-30

Updated: 2026-06-17

Risk Information

CVSS v2

Base Score: 2.1

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:N/A:N

Severity: Low

CVSS v3

Base Score: 5.5

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Severity: Medium

EPSS

EPSS: 0.00146