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 WONTFIX
Alias: CVE-2021-31232
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2183174
Blocks: 1955753
TreeView+ depends on / blocked
 
Reported: 2021-04-30 18:08 UTC by Pedro Sampaio
Modified: 2023-04-14 12:39 UTC (History)
20 users (show)

Fixed In Version: cortex 1.8.1
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Cortex that may allow a local attacker to obtain sensitive information. This is due to an issue in the Alertmanager when -experimental.alertmanager.enable-api is used. By using a webhook to send file content, an attacker can load any text file specified in the templates list, obtain sensitive information, and use this information to launch further attacks against the affected system.
Clone Of:
Environment:
Last Closed: 2023-04-14 12:39:49 UTC
Embargoed:


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

Comment 2 Avinash Hanwate 2023-03-30 13:47:55 UTC
Created grafana tracking bugs for this issue:

Affects: fedora-all [bug 2183174]

Comment 3 Product Security DevOps Team 2023-04-14 12:39:46 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.