Skip to content

CVE-2021-31232 Improper input validation in CNCF Cortex

MediumCVSS 5.5 EPSS 0.37%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
cortexproject github.com/cortexproject/cortex(Go) < 1.8.1 1.8.1 Fixed
linuxfoundation cortex < 1.8.1 1.8.1 Fixed

Affected products

ProductAffected versionsFixed in
cortexproject github.com/cortexproject/cortex(Go) < 1.8.1 1.8.1
linuxfoundation cortex < 1.8.1 1.8.1

References