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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/cortexproject/cortex | 1.8.1 | GHSA-m45g-f45x-vv22 |
| Go | github.com/cortexproject/cortex | 1.8.1 | GO-2022-0915 |
Affected products (as reported)
References
- https://community.grafana.com/c/security-announcements x_refsource_MISC
- https://github.com/cortexproject/cortex x_refsource_MISC
- https://github.com/cortexproject/cortex/pull/4129/files x_refsource_MISC
- https://lists.cncf.io/g/cortex-users/message/50 x_refsource_MISC