Bug 2155234 (CVE-2022-23536)

Summary: CVE-2022-23536 cortex: Alertmanager can expose local files content via specially crafted config
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: agerstmayr, amctagga, etamir, gparvin, grafana-maint, jarrpa, jcantril, jkurik, madam, muagarwa, nathans, nbecker, njean, ocs-bugs, owatkins, pahickey, periklis, scox, sostapov, stcannon, teagle, tnielsen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Cortex 1.13.2, Cortex 1.14.1 Doc Type: If docs needed, set a value
Doc Text:
A local file inclusion vulnerability exists in Cortex. This issue could allow a malicious actor to remotely read local files as a result of parsing maliciously crafted Alertmanager configurations when submitted to the Alertmanager Set Configuration API.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-21 09:18:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2155148    

Description Avinash Hanwate 2022-12-20 13:29:18 UTC
Cortex provides multi-tenant, long term storage for Prometheus. A local file inclusion vulnerability exists in Cortex versions 1.13.0, 1.13.1 and 1.14.0, where a malicious actor could remotely read local files as a result of parsing maliciously crafted Alertmanager configurations when submitted to the Alertmanager Set Configuration API. Only users of the Alertmanager service where `-experimental.alertmanager.enable-api` or `enable_api: true` is configured are affected. Affected Cortex users are advised to upgrade to patched versions 1.13.2 or 1.14.1. However as a workaround, Cortex administrators may reject Alertmanager configurations containing the `api_key_file` setting in the `opsgenie_configs` section before sending to the Set Alertmanager Configuration API.

https://cortexmetrics.io/docs/api/#set-alertmanager-configuration
https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j
https://github.com/cortexproject/cortex/releases/tag/v1.13.2
https://github.com/cortexproject/cortex/releases/tag/v1.14.1

Comment 3 Product Security DevOps Team 2022-12-21 09:18:31 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-2022-23536