Bug 1955751 (CVE-2021-31232) - CVE-2021-31232 cortex: Alertmanager can expose local files content via specially crafted config
Summary: CVE-2021-31232 cortex: Alertmanager can expose local files content via specia...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2021-31232
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1955753
TreeView+ depends on / blocked
 
Reported: 2021-04-30 18:08 UTC by Pedro Sampaio
Modified: 2021-05-18 14:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 14:38:22 UTC


Attachments (Terms of Use)

Description Pedro Sampaio 2021-04-30 18:08:34 UTC
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.

References:

https://community.grafana.com/c/security-announcements
https://github.com/cortexproject/cortex
https://github.com/cortexproject/cortex/pull/4129/files
https://lists.cncf.io/g/cortex-users/message/50

Comment 1 Product Security DevOps Team 2021-05-18 14:38:22 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-31232


Note You need to log in before you can comment on or make changes to this bug.