Live threats

All CVEs / Linuxfoundation

CVE-2021-31232Linuxfoundation Cortex

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.4%
probability of exploitation in 30 days · percentile 23
Auth required
Yes
Published
Apr 30, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cortex.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/cortexproject/cortex < 1.8.1 1.8.1 go get github.com/cortexproject/cortex@v1.8.1
Go github.com/cortexproject/cortex < 1.8.1 1.8.1 go get github.com/cortexproject/cortex@v1.8.1

Per OSV / GitHub Advisories (GHSA-m45g-f45x-vv22, GO-2022-0915). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
linuxfoundationcortex< 1.8.1

Official sources

References

Links published by the sources. Open them with care.