Vulnerability Details : CVE-2021-31232
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.
Vulnerability category: Input validation
Products affected by CVE-2021-31232
- cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-31232
0.09%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 23 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-31232
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
2.1
|
LOW | AV:L/AC:L/Au:N/C:P/I:N/A:N |
3.9
|
2.9
|
NIST | |
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
1.8
|
3.6
|
NIST |
CWE ids for CVE-2021-31232
-
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-31232
-
https://lists.cncf.io/g/cortex-users/message/50
Fix for Cortex Alertmanager security issue CVE-2021-31232Release Notes;Vendor Advisory
-
https://github.com/cortexproject/cortex
GitHub - cortexproject/cortex: A horizontally scalable, highly available, multi-tenant, long term Prometheus.Third Party Advisory
-
https://github.com/cortexproject/cortex/pull/4129/files
Fix for CVE-2021-31232: Alertmanager can expose local files content via specially crafted config by pracucci · Pull Request #4129 · cortexproject/cortex · GitHubPatch;Third Party Advisory
-
https://community.grafana.com/c/security-announcements
Latest Security Announcements topics - Grafana Labs Community ForumsThird Party Advisory
Jump to