Technical impact
This vulnerability allows an attacker who can write a tenant’s Alertmanager configuration to specify local file paths in the http_headers.<name>.files and basic_auth.username_file fields. The Alertmanager then reads those files and embeds their contents in HTTP headers when sending notifications. Consequently an attacker can read any file readable by the Alertmanager process and exfiltrate its contents to a server they control, effectively compromising credentials and configuration data. The weakness is a directory traversal / path disclosure flaw described by CWE‑22.
Affected Systems
Grafana Enterprise Metrics and Grafana Mimir are affected. Versions preceding Mimir 3.1.7 and 3.2.2, and GEM versions before 2.17.20, contain the flaw. GEM 2.11 through 2.16 will not receive a fix; users should upgrade to 2.17.20 or later. Mimir releases 3.1.7, 3.2.2, and GEM 2.17.20 include the fix.
Risk and Exploitability
The CVSS score of 7.7 indicates a high impact severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires write access to a tenant’s Alertmanager configuration, which may be granted in multi‑tenant deployments. Once configured, the attacker can read arbitrary files on the host and exfiltrate them via outbound HTTP traffic, posing a significant confidentiality risk. The attack path involves submitting a malicious configuration file, triggering a notification, and intercepting the request to retrieve the header data.