{"id":"CVE-2021-31232","aliases":["GHSA-m45g-f45x-vv22","GO-2022-0915"],"url":"https://o3.security/vulnerability/CVE-2021-31232","summary":"Improper input validation in CNCF Cortex","details":"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.","published":"2021-04-30T13:15:07.577Z","modified":"2026-07-09T00:38:08.869770Z","cvss":{"score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Go","name":"github.com/cortexproject/cortex","fixedVersion":"1.8.1"}],"fix":{"url":"https://github.com/cortexproject/cortex/pull/4129/files","label":"cortexproject/cortex#4129"},"references":[{"type":"ADVISORY","url":"https://community.grafana.com/c/security-announcements"},{"type":"ADVISORY","url":"https://github.com/cortexproject/cortex"},{"type":"ADVISORY","url":"https://lists.cncf.io/g/cortex-users/message/50"},{"type":"FIX","url":"https://github.com/cortexproject/cortex/pull/4129/files"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T00:38:08.869770Z"}}