CVE-2021-31232

Description

The Alertmanager in CNCF Cortex before 1.8.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.

Severity
MEDIUM
CVSS v3
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N · source nvd
Exploit chance (EPSS)
0.370%
chance of exploitation in the next 30 days
higher than 31.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Timeline

  1. 2021-04-30Published by the CNA12:46 UTC
  2. 2021-06-23GitHub advisory published (GHSA-m45g-f45x-vv22)54 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-m45g-f45x-vv22, affected packages:

PackageVulnerable versionsFixed in
Go github.com/cortexproject/cortexbefore 1.8.11.8.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
linuxfoundation cortexbefore 1.8.1fixed in 1.8.11.8.1

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources