Skip to main content
← Vulnerabilities

Arbitrary file read via Alertmanager receiver configuration in Grafana Mimir

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

7.7HighCNA
Exploited
No known exploitation
Fix
Fixed in 2.17.20, 3.1.7, 3.2.2
Who is exposed
Not reported

Do first: Upgrade to a fixed version: 2.17.20, 3.1.7, 3.2.2.

Published
Last modified
Published
Not listed in CISA KEV
11/100 · provisional
Fix
Fixed in 2.17.20, 3.1.7, 3.2.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Grafana Mimir and Grafana Enterprise Metrics (GEM) are affected. A tenant allowed to upload an Alertmanager configuration could read arbitrary files from the Alertmanager host, such as credentials and configuration files, by pointing HTTP header or basic auth settings at those files and sending notifications to a server they control.

Read the original 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.

What to do

  • Upgrade to a fixed version: 2.17.20, 3.1.7, 3.2.2.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • Grafana Enterprise Metrics (GEM)

    From 2.11.0 · through 2.16.2; From 2.17.0 · fixed in 2.17.20

  • Grafana Grafana Mimir

    From 3.0.4 · fixed in 3.1.7; From 3.2.0 · fixed in 3.2.2

Evidence 1

  1. Advisory

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.