CVE-2021-31231: Grafana Enterprise Metrics

Medium severity, CVSS 5.5. EPSS: 0.3% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Grafana Enterprise Metrics, before 1.2.1: fixed in 1.2.1

Affected products

Published 2021-04-30. Last modified 2026-06-17.