Vulnerability · Published Apr 30, 2021 · Assigned by mitre

CVE-2021-31232

Medium 5.5

In plain English

A medium-severity security flaw in the github.com/cortexproject/cortex package (Go). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.4%top 68.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/cortexproject/cortex1.8.1GHSA-m45g-f45x-vv22
Gogithub.com/cortexproject/cortex1.8.1GO-2022-0915

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References