{"cve":"CVE-2021-31232","nvd":{"published":"2021-04-30T13:15:07.577","modified":"2026-06-17T03:51:29.420","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5},"cwes":[],"references":["https://community.grafana.com/c/security-announcements","https://github.com/cortexproject/cortex","https://github.com/cortexproject/cortex/pull/4129/files","https://lists.cncf.io/g/cortex-users/message/50","https://community.grafana.com/c/security-announcements"],"products":["linuxfoundation:cortex"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-31232","score":0.0037,"percentile":0.30985,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m45g-f45x-vv22","url":"https://osv.dev/vulnerability/GHSA-m45g-f45x-vv22","summary":"Improper input validation in CNCF Cortex","modified":"2024-08-21T15:58:46.171649Z","packages":[{"ecosystem":"Go","name":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":["<1.8.1"],"fixed":["1.8.1"]}]},{"id":"GO-2022-0915","url":"https://osv.dev/vulnerability/GO-2022-0915","summary":"Improper input validation in CNCF Cortex in github.com/cortexproject/cortex","modified":"2026-03-03T04:51:03.443289Z","packages":[{"ecosystem":"Go","name":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":["<1.8.1"],"fixed":["1.8.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}