PT-2021-19212 · Cncf · Cncf Cortex

Published

2021-04-30

·

Updated

2024-08-21

·

CVE-2021-31232

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions CNCF Cortex versions prior to 1.8.1
Description The issue concerns a local file disclosure problem in the Alertmanager component when the -experimental.alertmanager.enable-api option is enabled. This allows an attacker to potentially send any file content via a webhook by exploiting the HTTP basic auth password file. Additionally, 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. Improper input validation in CNCF Cortex is also a contributing factor.
Recommendations For versions prior to 1.8.1, update to version 1.8.1 or later to resolve the issue. As a temporary workaround, consider disabling the -experimental.alertmanager.enable-api option until a patch is available. Restrict access to the alertmanager templates to minimize the risk of exploitation. Avoid using the HTTP basic auth password file in the alertmanager configuration until the issue is resolved.

Fix

RCE

Weakness Enumeration

Related Identifiers

CVE-2021-31232
GHSA-M45G-F45X-VV22
GO-2022-0915

Affected Products

Cncf Cortex