{"id":"CVE-2022-23536","published":"2022-12-19T21:10:21Z","modified":"2025-04-16T18:23:07Z","title":"Alertmanager can expose local files content via specially crafted config","vendor":"cortexproject","product":"cortex","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00817,"percentile":0.58033,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"},{"id":"CWE-641","name":"Improper Restriction of Names for Files and Other Resources"}],"references":[{"url":"https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j","tags":["x_refsource_CONFIRM"]},{"url":"https://cortexmetrics.io/docs/api/#set-alertmanager-configuration","tags":["x_refsource_MISC"]},{"url":"https://github.com/cortexproject/cortex/releases/tag/v1.13.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/cortexproject/cortex/releases/tag/v1.14.1","tags":["x_refsource_MISC"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":11.61},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"cortexproject","affectedVersions":[{"vendor":"cortexproject","product":"cortex","versions":[">= 1.13.0, <= 1.13.1","= 1.14.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-16T18:22:58.411747Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cortexproject/cortex","vulnerableRanges":[">=1.14.0, <1.14.1",">=1.13.0, <1.13.2"],"patched":["1.14.1","1.13.2"],"from":["GHSA-cq2g-pw6q-hf7j","GO-2022-1175"],"provenance":"source"}],"summary":{"text":"A local file inclusion flaw in Cortex's Alertmanager component allows files on the server to be read when a specially crafted Alertmanager configuration is parsed. The issue only affects deployments where the Alertmanager Set Configuration API is enabled, and an attacker who can reach that API with low privileges can read local files remotely by submitting a malicious configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:32Z"},"euvd":{"id":"EUVD-2022-7604","exploited":false,"provenance":"source"}}