{"id":"GHSA-m45g-f45x-vv22","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.","aliases":["CVE-2021-31232","GO-2022-0915"],"modified":"2024-08-21T15:58:46.171649Z","published":"2021-06-23T17:20:38Z","database_specific":{"nvd_published_at":"2021-04-30T13:15:00Z","cwe_ids":["CWE-20"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-05-20T21:19:40Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31232"},{"type":"WEB","url":"https://github.com/cortexproject/cortex/pull/4129/files"},{"type":"WEB","url":"https://community.grafana.com/c/security-announcements"},{"type":"WEB","url":"https://github.com/cortexproject/cortex"},{"type":"WEB","url":"https://lists.cncf.io/g/cortex-users/message/50"}],"affected":[{"package":{"name":"github.com/cortexproject/cortex","ecosystem":"Go","purl":"pkg:golang/github.com/cortexproject/cortex"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.8.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-m45g-f45x-vv22/GHSA-m45g-f45x-vv22.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}