{"id":"CVE-2022-23536","aliases":["GHSA-cq2g-pw6q-hf7j","GO-2022-1175"],"url":"https://o3.security/vulnerability/CVE-2022-23536","summary":"Alertmanager can expose local files content via specially crafted config","details":"### Impact\n\nA local file inclusion vulnerability exists in Cortex versions v1.13.0, v1.13.1 and v1.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](https://cortexmetrics.io/docs/api/#set-alertmanager-configuration). Only users of the Cortex Alertmanager service using `-experimental.alertmanager.enable-api` or `enable_api: true` are affected.\n\n### Specific Go Packages Affected\ngithub.com/cortexproject/cortex/pkg/alertmanager\n\n### Patches\nAffected Cortex users are advised to upgrade to versions 1.13.2 or 1.14.1.\n\n### Workarounds\nPatching is ultimately advised. Using out-of-bound validation, Cortex administrators may reject Alertmanager configurations containing the `api_key_file` setting in the `opsgenie_configs` section and `opsgenie_api_key_file` in the `global` section before sending to the [Set Alertmanager Configuration API](https://cortexmetrics.io/docs/api/#set-alertmanager-configuration) as a workaround.\n\n### References\n- Fixed Versions:\n   - https://github.com/cortexproject/cortex/releases/tag/v1.14.1\n   - https://github.com/cortexproject/cortex/releases/tag/v1.13.2\n- https://cortexmetrics.io/docs/api/#set-alertmanager-configuration\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [cortex](https://github.com/cortexproject/cortex/issues/new/choose)\n* Email us at [cortex-team@googlegroups.com](mailto:cortex-team@googlegroups.com).\n","published":"2022-12-19T21:10:21.977Z","modified":"2026-10-28T02:30:47.391758167Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},"epss":{"score":0.00753,"percentile":0.51915,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/cortexproject/cortex","fixedVersion":"1.14.1"},{"ecosystem":"Go","name":"github.com/cortexproject/cortex","fixedVersion":"1.13.2"}],"fix":{"url":"https://github.com/cortexproject/cortex/commit/03e023d8b012887b31cc268d0d011b01e1e65506","label":"cortexproject/cortex@03e023d"},"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"},{"type":"WEB","url":"https://github.com/cortexproject/cortex/commit/03e023d8b012887b31cc268d0d011b01e1e65506"},{"type":"PACKAGE","url":"https://github.com/cortexproject/cortex"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-1175"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:47.391758167Z"}}