CVE-2021-31232: The Alertmanager in CNCF Cortex before 1.8.1 has a local file disclosure vulnerability when -experimental.aler
CVE-2021-31232 is a medium-severity flaw (CVSS 5.5) affecting cortex. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 69%) |
| CISA exploited list | No |
| Published | 2021-04-30 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-31232?
cortex: upgrade to 1.8.1. Exact commands for each OS are on this page.
Is CVE-2021-31232 being exploited?
CVE-2021-31232 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-31232 affect?
CVE-2021-31232 affects cortex. Severity is medium (CVSS 5.5). 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 webh
How urgent is CVE-2021-31232?
Priority 32/100. On your watchlist
Related CVEs
- CVE-2023-39069 CRITICAL 9.8 UPGRADE UPGRADE An issue in StrangeBee TheHive v.5.0.8, v.4.1.21 and Cortex v.3.1.6 allows a remote attacker to gain privilege
- CVE-2022-23536 MEDIUM 6.5 DOWNGRADE Cortex provides multi-tenant, long term storage for Prometheus
- CVE-2021-36157 MEDIUM 5.3 UPGRADE An issue was discovered in Grafana Cortex through 1.9.0
- CVE-2018-20226 HIGH 7.2 UPGRADE An organization administrator can add a super administrator in THEHIVE PROJECT Cortex before 2.1.3 due to the