# CVE-2021-31232: Improper input validation in CNCF Cortex

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2021-04-30T12:46:32.000Z
- Modified: 2026-06-17T03:51:29.420Z
- Also known as: GHSA-m45g-f45x-vv22, GO-2022-0915
- Weaknesses: CWE-20
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/cortexproject/cortex (Go): before 1.8.1
- linuxfoundation cortex: before 1.8.1

## Every score

- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://community.grafana.com/c/security-announcements> (third-party-advisory, web)
- <https://github.com/cortexproject/cortex> (third-party-advisory, web)
- <https://github.com/cortexproject/cortex/pull/4129/files> (fix, patch, third-party-advisory, web)
- <https://lists.cncf.io/g/cortex-users/message/50> (release-notes, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31232> (advisory)
- <https://github.com/advisories/GHSA-m45g-f45x-vv22> (advisory)

## Sources

- CVE List: [CVE-2021-31232](https://www.cve.org/CVERecord?id=CVE-2021-31232), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-m45g-f45x-vv22](https://github.com/advisories/GHSA-m45g-f45x-vv22), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0915](https://pkg.go.dev/vuln/GO-2022-0915), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-31232](https://nvd.nist.gov/vuln/detail/CVE-2021-31232), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31232 · Whole record: https://cve.day/CVE-2021-31232.json · Rebuilt by cve.day 2026-11-25T22:58:01.119Z
