# CVE-2021-31232

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-04-30 · Modified: 2024-08-03
- Aliases: GHSA-m45g-f45x-vv22, GO-2022-0915
- Record: https://cvemate.com/vulnerability/CVE-2021-31232 · JSON: https://cvemate.com/vulnerability/CVE-2021-31232/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.37%, percentile 32.994%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/cortexproject cortex (Go): \< 1.8.1
- linuxfoundation cortex: \< 1.8.1

## References

- <https://community.grafana.com/c/security-announcements>
- <https://github.com/cortexproject/cortex>
- <https://github.com/cortexproject/cortex/pull/4129/files>
- <https://lists.cncf.io/g/cortex-users/message/50>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31232>
- <https://github.com/advisories/GHSA-m45g-f45x-vv22>

---

Data as of 2026-12-05T05:33:17.732Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
