← back
CVE-2022-23536

Alertmanager can expose local files content via specially crafted config

CVSS 6.5 MEDIUMEPSS 0.8%CWE-184CWE-641CWE-73
In short

Cortex's Alertmanager API can be tricked into reading and exposing local files on the server when a specially crafted configuration file is submitted. This matters because an attacker could steal sensitive information like credentials or keys stored on the server.

Technical detail

A local file inclusion vulnerability exists in Cortex Alertmanager's configuration parsing when the API is enabled. An attacker can submit a malicious configuration containing `api_key_file` in `opsgenie_configs` section to the Set Configuration API, causing the server to read and expose arbitrary local files. Affected versions are 1.13.0, 1.13.1, and 1.14.0; upgrade to 1.13.2 or 1.14.1.

Summary generated and translated by AI from the official description.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Affected products
cortexproject · cortex

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →