CVE-2021-31232
MEDIUM 5.5CVSS 3.1Improper input validation in CNCF Cortex
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.
- Published
- 30 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-m45g-f45x-vv22GO-2022-0915
- Sources
- NVDJSONOSV GHSA-m45g-f45x-vv22JSONOSV GO-2022-0915JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | cortexcpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:* |
< 1.8.1 | 1.8.1 |
| OSV | Go | github.com/cortexproject/cortex | < 1.8.1 | 1.8.1 |
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 · Patch, Third Party Advisory, WEB, FIX
- 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 30 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Jun 2021)