Skip to main content
← All vulnerabilities
CVE-2022-23536GHSA-CQ2G-PW6Q-HF7JGO-2022-1175

Alertmanager can expose local files content via specially crafted config

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.14.1, 1.13.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • cortexproject cortex

    From 1.13.0 · through 1.13.1

  • github.com/cortexproject/cortexGo

    From 1.14.0 · fixed in 1.14.1

  • github.com/cortexproject/cortexGo

    From 1.13.0 · fixed in 1.13.2

  • github.com/cortexproject/cortexGo

    From 1.13.0 · fixed in 1.13.2; From 1.14.0 · fixed in 1.14.1

References 4

GitHub · cortexproject/cortex

cortexmetrics.io