{"id":"CVE-2022-23536","aliases":["GHSA-cq2g-pw6q-hf7j","GO-2022-1175"],"summary":"Alertmanager can expose local files content via specially crafted config","published_at":"2022-12-19T00:00:00Z","modified_at":"2026-02-02T07:28:10.578778Z","products":[],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.008170000277459621,"percentile":0.579039990901947,"date":"2026-11-19T00:00:00Z"},"priority":7.5,"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"cortexproject/cortex","versions":[">= 1.13.0, <= 1.13.1","= 1.14.0"],"provider":"cvelistv5","source":"CVE-2022-23536","relation":"self"},{"ecosystem":"Go","package":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"type":"SEMVER","events":[{"introduced":"1.14.0"},{"fixed":"1.14.1"}]}],"versions":["1.14.0"],"fixed":["1.14.1"],"provider":"osv","source":"GHSA-cq2g-pw6q-hf7j","relation":"self"},{"ecosystem":"Go","package":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"type":"SEMVER","events":[{"introduced":"1.13.0"},{"fixed":"1.13.2"}]}],"fixed":["1.13.2"],"provider":"osv","source":"GHSA-cq2g-pw6q-hf7j","relation":"self"},{"ecosystem":"Go","package":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"type":"SEMVER","events":[{"introduced":"1.13.0"},{"fixed":"1.13.2"},{"introduced":"1.14.0"},{"fixed":"1.14.1"}]}],"fixed":["1.13.2","1.14.1"],"provider":"osv","source":"GO-2022-1175","relation":"self"},{"ecosystem":"NVD","package":"linuxfoundation:cortex","versions":["1.13.0","1.13.1","1.14.0"],"provider":"nvd","source":"CVE-2022-23536","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/logging-loki-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/acm-grafana-rhel8","rhacm2/acm-prometheus-rhel8","rhacm2/rbac-query-proxy-rhel8","rhacm2/thanos-receive-controller-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["grafana","grafana-azure-monitor","grafana-cloudwatch","grafana-elasticsearch","grafana-graphite","grafana-influxdb","grafana-loki","grafana-mssql","grafana-mysql","grafana-opentsdb","grafana-postgres","grafana-prometheus","grafana-selinux","grafana-stackdriver"],"package_count":14,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["grafana","grafana-selinux"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift4/ose-cluster-monitoring-rhel9-operator","openshift4/ose-cluster-storage-operator","openshift4/ose-grafana","openshift4/ose-prometheus-rhel9-operator","openshift4/ose-thanos-rhel8"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Openshift Container Storage 4","cpe":"cpe:/a:redhat:openshift_container_storage:4","status":"not_affected","packages":["ocs4/mcg-rhel8-operator","ocs4/ocs-rhel8-operator","ocs4/rook-ceph-rhel8-operator"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4/mcg-rhel9-operator","odf4/ocs-rhel9-operator","odf4/odf-rhel8-operator"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-23536","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-23536","license":"CC-BY-4.0","published_at":"2022-12-19T21:10:21.977Z","modified_at":"2025-04-16T18:23:07.694Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2022-23536"}],"affected":[{"ecosystem":"CVE","package":"cortexproject/cortex","versions":[">= 1.13.0, <= 1.13.1","= 1.14.0"],"provider":"cvelistv5","source":"CVE-2022-23536","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j"},{"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"}]},{"provider":"nvd","source_id":"CVE-2022-23536","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23536","severity":[],"affected":[{"ecosystem":"NVD","package":"linuxfoundation:cortex","versions":["1.13.0","1.13.1","1.14.0"],"provider":"nvd","source":"CVE-2022-23536","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-cq2g-pw6q-hf7j","relation":"self","url":"https://osv.dev/vulnerability/GHSA-cq2g-pw6q-hf7j","license":"CC-BY-4.0","published_at":"2022-12-19T21:09:05Z","modified_at":"2023-11-08T04:08:21.294648Z","summary":"Cortex's 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).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"GHSA-cq2g-pw6q-hf7j"}],"affected":[{"ecosystem":"Go","package":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"type":"SEMVER","events":[{"introduced":"1.14.0"},{"fixed":"1.14.1"}]}],"versions":["1.14.0"],"fixed":["1.14.1"],"provider":"osv","source":"GHSA-cq2g-pw6q-hf7j","relation":"self"},{"ecosystem":"Go","package":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"type":"SEMVER","events":[{"introduced":"1.13.0"},{"fixed":"1.13.2"}]}],"fixed":["1.13.2"],"provider":"osv","source":"GHSA-cq2g-pw6q-hf7j","relation":"self"}],"product_status":[],"references":[{"type":"WEB","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":"WEB","url":"https://cortexmetrics.io/docs/api/#set-alertmanager-configuration"},{"type":"PACKAGE","url":"https://github.com/cortexproject/cortex"},{"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":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-1175"}]},{"provider":"osv","source_id":"GO-2022-1175","relation":"self","url":"https://osv.dev/vulnerability/GO-2022-1175","license":"CC-BY-4.0","published_at":"2022-12-22T17:41:59Z","modified_at":"2024-05-20T16:03:47Z","summary":"Exposure of local files in github.com/cortexproject/cortex","details":"A malicious actor could remotely read local files by submitting to the Alertmanager Set Configuration API maliciously crafted inputs. Only users of the Alertmanager service where \"-experimental.alertmanager.enable-api\" or \"enable_api: true\" is configured are affected.","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"type":"SEMVER","events":[{"introduced":"1.13.0"},{"fixed":"1.13.2"},{"introduced":"1.14.0"},{"fixed":"1.14.1"}]}],"fixed":["1.13.2","1.14.1"],"provider":"osv","source":"GO-2022-1175","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j"},{"type":"FIX","url":"https://github.com/cortexproject/cortex/commit/03e023d8b012887b31cc268d0d011b01e1e65506"},{"type":"WEB","url":"https://cortexmetrics.io/docs/api/#set-alertmanager-configuration"}]},{"provider":"redhat-vex","source_id":"CVE-2022-23536","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-23536","license":"CC-BY-4.0","published_at":"2022-12-19T00:00:00Z","modified_at":"2026-02-02T07:28:10.578778Z","summary":"cortex: Alertmanager can expose local files content via specially crafted config","details":"A local file inclusion vulnerability exists in Cortex. This issue could allow a malicious actor to remotely read local files as a result of parsing maliciously crafted Alertmanager configurations when submitted to the Alertmanager Set Configuration API.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2022-23536"},{"type":"Red Hat","score":"Moderate","source":"CVE-2022-23536"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/logging-loki-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/acm-grafana-rhel8","rhacm2/acm-prometheus-rhel8","rhacm2/rbac-query-proxy-rhel8","rhacm2/thanos-receive-controller-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["grafana","grafana-azure-monitor","grafana-cloudwatch","grafana-elasticsearch","grafana-graphite","grafana-influxdb","grafana-loki","grafana-mssql","grafana-mysql","grafana-opentsdb","grafana-postgres","grafana-prometheus","grafana-selinux","grafana-stackdriver"],"package_count":14,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["grafana","grafana-selinux"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift4/ose-cluster-monitoring-rhel9-operator","openshift4/ose-cluster-storage-operator","openshift4/ose-grafana","openshift4/ose-prometheus-rhel9-operator","openshift4/ose-thanos-rhel8"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Openshift Container Storage 4","cpe":"cpe:/a:redhat:openshift_container_storage:4","status":"not_affected","packages":["ocs4/mcg-rhel8-operator","ocs4/ocs-rhel8-operator","ocs4/rook-ceph-rhel8-operator"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4/mcg-rhel9-operator","odf4/ocs-rhel9-operator","odf4/odf-rhel8-operator"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-23536"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23536.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-23536"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2155234"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-23536"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23536"},{"type":"WEB","url":"https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j"}]}],"references":[{"type":"WEB","url":"https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j"},{"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://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"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23536.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-23536"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2155234"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-23536"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-23536","url":"https://www.cve.org/CVERecord?id=CVE-2022-23536","license":"CC-BY-4.0","modified_at":"2025-04-16T18:23:07.694Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-23536","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23536","relation":"self"},{"provider":"osv","source_id":"GHSA-cq2g-pw6q-hf7j","url":"https://osv.dev/vulnerability/GHSA-cq2g-pw6q-hf7j","license":"CC-BY-4.0","modified_at":"2023-11-08T04:08:21.294648Z","relation":"self"},{"provider":"osv","source_id":"GO-2022-1175","url":"https://osv.dev/vulnerability/GO-2022-1175","license":"CC-BY-4.0","modified_at":"2024-05-20T16:03:47Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-23536","url":"https://access.redhat.com/security/cve/CVE-2022-23536","license":"CC-BY-4.0","modified_at":"2026-02-02T07:28:10.578778Z","relation":"self"}]}
