{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-23536","id":"CVE-2022-23536","title":"Alertmanager can expose local files content via specially crafted config","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.a","descriptionLong":"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","published":"2022-12-19T21:10:21.977Z","updated":"2026-10-28T02:30:47.391758167Z","reserved":"2022-01-19T21:23:53.793Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["cortexproject cortex"],"affectedProducts":[{"vendor":"cortexproject","product":"cortex","defaultStatus":null,"versions":[{"version":">= 1.13.0, <= 1.13.1","status":"affected"},{"version":"= 1.14.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[">=1.14.0 <1.14.1",">=1.13.0 <1.13.2"],"fixed":["1.14.1","1.13.2"],"advisory":"GHSA-cq2g-pw6q-hf7j"}],"cwes":["CWE-73","CWE-184","CWE-641"],"aliases":["GHSA-cq2g-pw6q-hf7j","GO-2022-1175"],"references":[{"url":"https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://cortexmetrics.io/docs/api/#set-alertmanager-configuration","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","web"]},{"url":"https://github.com/cortexproject/cortex/releases/tag/v1.13.2","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://github.com/cortexproject/cortex/releases/tag/v1.14.1","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23536.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23536","tags":["advisory"]},{"url":"https://github.com/cortexproject/cortex/commit/03e023d8b012887b31cc268d0d011b01e1e65506","tags":["web","fix"]},{"url":"https://github.com/cortexproject/cortex","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2022-1175","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00817,"epssPercentile":0.57848,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-23536","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23536","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-23536","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cq2g-pw6q-hf7j","ok":true,"note":"GHSA-cq2g-pw6q-hf7j"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-23536","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}