{"id":"CVE-2022-23536","summary":"Alertmanager can expose local files content via specially crafted config","details":"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","aliases":["GHSA-cq2g-pw6q-hf7j","GO-2022-1175"],"modified":"2026-08-12T03:51:20.621007944Z","published":"2022-12-19T21:10:21.977Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23536.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-184","CWE-641","CWE-73"]},"references":[{"type":"WEB","url":"https://cortexmetrics.io/docs/api/#set-alertmanager-configuration"},{"type":"WEB","url":"https://github.com/cortexproject/cortex/releases/tag/v1.13.2"},{"type":"WEB","url":"https://github.com/cortexproject/cortex/releases/tag/v1.14.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23536.json"},{"type":"ADVISORY","url":"https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23536"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cortexproject/cortex","events":[{"introduced":"69139acb73354e5b9e1aa41c1cba49631c2815f1"},{"fixed":"cdae916c632105ee8e1901d4bf0133a7389316ab"},{"fixed":"984ac413fbf27d3a7992f385a1400bf34797c9da"}],"database_specific":{"cpe":["cpe:2.3:a:linuxfoundation:cortex:1.13.0:*:*:*:*:*:*:*","cpe:2.3:a:linuxfoundation:cortex:1.13.1:*:*:*:*:*:*:*","cpe:2.3:a:linuxfoundation:cortex:1.14.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"1.13.0"},{"last_affected":"1.13.0"},{"introduced":"1.13.1"},{"last_affected":"1.13.1"},{"introduced":"1.14.0"},{"last_affected":"1.14.0"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["1.13.0","1.13.1","1.14.0","= 1.14.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23536.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}