{"id":"CVE-2021-31232","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.","aliases":["GHSA-m45g-f45x-vv22","GO-2022-0915"],"modified":"2026-07-09T00:38:08.869770Z","published":"2021-04-30T13:15:07.577Z","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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cortexproject/cortex","events":[{"introduced":"0"},{"fixed":"4afaa357469fb37fd92cb1e2a0c1d10cdddc5ecd"}],"database_specific":{"cpe":"cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.8.1"}],"source":"CPE_RANGE"}}],"versions":["v1.8.0","v1.8.0-rc.1","v1.8.0-rc.0","v0.4.0","v0.3.0-rc.0","v0.2.0","v0.2.0-rc.0","v0.1.0-rc.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31232.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}