{"id":"CVE-2021-31232","aliases":["CVE-2021-31232","GHSA-m45g-f45x-vv22","GO-2022-0915"],"related":[],"kind":"vulnerability","state":"published","title":"Improper input validation in CNCF Cortex","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Improper input validation in CNCF Cortex in github.com/cortexproject/cortex","format":"markdown","source":"go"},{"lang":"es","text":"Alertmanager en CNCF Cortex versiones anteriores a 1.8.1, presenta una vulnerabilidad de divulgación de archivos locales cuando es usado -experimental.alertmanager.enable-api.&#xa0;El archivo de contraseña de autenticación básica HTTP se puede usar como un vector de ataque para enviar cualquier contenido de archivo por medio de un webhook.&#xa0;Las plantillas de alertmanager pueden ser usados como vector de ataque para enviar cualquier contenido de archivo porque alertmanager puede cargar cualquier archivo de texto especificado en la lista de plantillas.","source":"nvd"}],"published":"2021-04-30T12:46:32.000Z","modified":"2026-06-17T03:51:29.420Z","severity":{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","score":2.1,"rating":"LOW"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.1"}],"ecosystem":"Go","package":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.1"}],"ecosystem":"Go","package":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","source":"go"},{"ranges":[{"status":"affected","fixed":"1.8.1"}],"vendor":"linuxfoundation","product":"cortex","cpe":"cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://community.grafana.com/c/security-announcements","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cortexproject/cortex","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/cortexproject/cortex/pull/4129/files","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://lists.cncf.io/g/cortex-users/message/50","tags":["release-notes","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31232","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-m45g-f45x-vv22","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31232","url":"https://www.cve.org/CVERecord?id=CVE-2021-31232","licence":"CVE Terms of Use","modified":"2024-08-03T22:55:53.349Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m45g-f45x-vv22","url":"https://github.com/advisories/GHSA-m45g-f45x-vv22","licence":"CC-BY-4.0","modified":"2024-08-21T15:58:46.171Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0915","url":"https://pkg.go.dev/vuln/GO-2022-0915","licence":"CC-BY-4.0","modified":"2026-03-03T04:51:03.443Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31232","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31232","licence":"Public domain","modified":"2026-06-17T03:51:29.420Z"}],"updatedAt":"2026-11-25T22:58:01.119Z","epss":{"score":0.0037,"percentile":0.32996,"date":"2026-12-01T12:00:22.000Z"}}