The Alertmanager in CNCF Cortex before 1.8.1 has a local file disclosure vulnerability…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | github.com/cortexproject/cortex (Go) | before 1.8.1 | 1.8.1 | Patch available | GHSA-m45g-f45x-vv22 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- github.com/cortexproject/cortex (Go) Vendor— Affected before 1.8.1 Fixed in 1.8.1 Patch available GHSA-m45g-f45x-vv22
Remediation
- Fix · GHSA-m45g-f45x-vv22 github.com/cortexproject/cortex (Go) Fixed in 1.8.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Openshift Container Storage 4 | Affected | No fix planned: Out of support scope |
Not affected: 6 products
- Logging Subsystem for Red Hat OpenShift
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat Openshift Data Foundation 4
Timeline
- 2026-10-02 Threatist record created from CVE-2021-31232
- 2026-10-03 Alias added: GHSA-m45g-f45x-vv22
References
More backstage Cortex vulnerabilities
- TI-2022-07591 Alertmanager can expose local files content via specially crafted config CVSS 3.1MEDIUM 6.5
- TI-2021-14576 An issue was discovered in Grafana Cortex through 1.9.0. CVSS 3.1MEDIUM 5.3
Sources
- CVE-2021-31232 · CVE Program
- CVE-2021-31232 · NVD
- FIRST EPSS
- GHSA-m45g-f45x-vv22 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-31232 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences