CVE-2021-31232
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
github.com/cortexproject/cortex (Go)before 1.8.1GitHub Advisory Database, Go Vulnerability Database
linuxfoundation cortexbefore 1.8.1NVD

All scores

GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD2.1low CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-31232 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-m45g-f45x-vv22 changed 2024-08-21CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0915 changed 2026-03-03CC-BY-4.0
NVDCVE-2021-31232 changed 2026-06-17Public domain