CVE-2021-31232: CNCF Cortex Alertmanager - Path Traversal
- Cve: CVE-2021-31232
- Name: CNCF Cortex Alertmanager - Path Traversal
- 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.
- Impact: Attackers can access sensitive files on the server, leading to information disclosure and potential further exploitation.
- Remediation: Update to version 1.8.1 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.0037
- Epss percentile: 0.31362
- Assignee: [email protected]
- Published at: 2021-04-30T13:15:07Z
- Age in days: 2034
- Modified at: 2026-06-17T03:51:29Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-31232
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-noinfo | — |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/cortexproject/cortex/pull/4129/files | Patch, Third Party Advisory |
| https://lists.cncf.io/g/cortex-users/message/50 | Release Notes, Vendor Advisory |
| https://community.grafana.com/c/security-announcements | Third Party Advisory |
| https://github.com/cortexproject/cortex | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linuxfoundation:cortex | < 1.8.1 | no | nvd | /v1/products/linuxfoundation/cortex |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cortexproject/cortex | fix, pull | yes | /v1/repositories/cortexproject/cortex |
Index
- Repositories: 1
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts