CVE-2026-81938

Arbitrary file read via Alertmanager receiver configuration in Grafana Mimir

Published Nov 2, 2026 CVSS 3.1 · 7.7 High EPSS < 1% KEV · Not listed
Description
Grafana Mimir's Alertmanager rejects tenant-supplied receiver configurations that reference local files, but the check did not cover two HTTP client settings: http_headers.<name>.files and basic_auth.username_file. A tenant permitted to upload an Alertmanager configuration could point these fields at any file readable by the Alertmanager process. When a notification was sent, Alertmanager read the file and put its contents in a header of the outgoing request. By directing the receiver at a server they control, the tenant could read files from the Alertmanager host, such as credentials and configuration.

Exploitation requires permission to write the tenant's Alertmanager configuration. Grafana Enterprise Metrics (GEM), which is built on Mimir, is also affected. The issue is fixed in Mimir 3.1.7 and 3.2.2 and in GEM 2.17.20. GEM 2.11 through 2.16 will not receive a fix; users on those versions should upgrade to 2.17.20 or later.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grafana Mimir to version 3.1.7, 3.2.2, or later, or upgrade Grafana Enterprise Metrics to version 2.17.20 or newer.
  • If an upgrade is not immediately possible, restrict or remove tenant permission to modify Alertmanager configurations, especially disallowing the http_headers.<name>.files and basic_auth.username_file parameters.
  • Monitor and audit Alertmanager configuration files for unexpected file references and for outbound notifications containing unusual headers.

Generated by OpenCVE AI on November 2, 2026 at 19:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Grafana
Grafana enterprise Metrics
Grafana grafana Mimir
Vendors & Products Grafana
Grafana enterprise Metrics
Grafana grafana Mimir
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Grafana Mimir's Alertmanager rejects tenant-supplied receiver configurations that reference local files, but the check did not cover two HTTP client settings: http_headers.<name>.files and basic_auth.username_file. A tenant permitted to upload an Alertmanager configuration could point these fields at any file readable by the Alertmanager process. When a notification was sent, Alertmanager read the file and put its contents in a header of the outgoing request. By directing the receiver at a server they control, the tenant could read files from the Alertmanager host, such as credentials and configuration. Exploitation requires permission to write the tenant's Alertmanager configuration. Grafana Enterprise Metrics (GEM), which is built on Mimir, is also affected. The issue is fixed in Mimir 3.1.7 and 3.2.2 and in GEM 2.17.20. GEM 2.11 through 2.16 will not receive a fix; users on those versions should upgrade to 2.17.20 or later.
Title Arbitrary file read via Alertmanager receiver configuration in Grafana Mimir
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GRAFANA
Published
Updated
Nov 2, 2026, 7:06 PM
Reserved
Aug 27, 2026, 7:29 PM
Status
Awaiting Analysis
Published
Nov 2, 2026, 7:18 PM
Modified
Nov 2, 2026, 7:34 PM