{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31232","published":"2021-04-30T13:15:07.577000Z","last_modified":"2026-06-17T03:51:29.420000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":[],"cpes":[{"criteria":"cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*","part":"a","vendor":"linuxfoundation","product":"cortex","version_end_excluding":"1.8.1"}],"cpes_truncated":false,"vendors":["linuxfoundation"],"products":["linuxfoundation/cortex"],"epss":{"score":0.0037,"percentile":0.23005,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-m45g-f45x-vv22","ecosystem":"Go","name":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"introduced":"0","fixed":"1.8.1"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2022-0915","ecosystem":"Go","name":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"introduced":"0","fixed":"1.8.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2021-31232/","html_en":"/en/cve/CVE-2021-31232/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31232","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31232"},"untrusted":{"vendor_name":"Linuxfoundation","product_name":"Cortex","desc_en":"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.","affected":[],"references":[{"url":"https://community.grafana.com/c/security-announcements","tags":["Third Party Advisory"]},{"url":"https://github.com/cortexproject/cortex","tags":["Third Party Advisory"]},{"url":"https://github.com/cortexproject/cortex/pull/4129/files","tags":["Patch","Third Party Advisory"]},{"url":"https://lists.cncf.io/g/cortex-users/message/50","tags":["Release Notes","Vendor Advisory"]}]}}