CVE-2021-31232Linuxfoundation Cortex
Medium 5.5
Follow: this CVE · Linuxfoundation · Linuxfoundation Cortex We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Cortex.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | cortex | < 1.8.1 |
Official sources
References
Links published by the sources. Open them with care.
- community.grafana.com Third Party Advisory
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- lists.cncf.io Release Notes Vendor Advisory