5.5medium
Improper input validation in CNCF Cortex
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.37% (higher than 32% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-m45g-f45x-vv22GO-2022-0915
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| github.com/cortexproject/cortex (Go) | before 1.8.1 | GitHub Advisory Database, Go Vulnerability Database |
| linuxfoundation cortex | before 1.8.1 | NVD |
All scores
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.1low CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
Go Vulnerability Database
Improper input validation in CNCF Cortex in github.com/cortexproject/cortex
NVD (es)
Alertmanager en CNCF Cortex versiones anteriores a 1.8.1, presenta una vulnerabilidad de divulgación de archivos locales cuando es usado -experimental.alertmanager.enable-api. El archivo de contraseña de autenticación básica HTTP se puede usar como un vector de ataque para enviar cualquier contenido de archivo por medio de un webhook. Las plantillas de alertmanager pueden ser usados como vector de ataque para enviar cualquier contenido de archivo porque alertmanager puede cargar cualquier archivo de texto especificado en la lista de plantillas.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31232 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m45g-f45x-vv22 changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0915 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2021-31232 changed 2026-06-17 | Public domain |