CVE-2022-23536 json
Alertmanager can expose local files content via specially crafted config
published 3y ago modified 4mo ago also GHSA-cq2g-pw6q-hf7j , GO-2022-1175 , EUVD-2022-7604
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/cortexproject/cortex 1.13.2, 1.14.1
Is CVE-2022-23536 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-23536 updated cvss 6.5
cortex: Alertmanager can expose local files content via specially crafted config
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/logging-loki-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/acm-grafana-rhel8, rhacm2/acm-prometheus-rhel8, rhacm2/rbac-query-proxy-rhel8, rhacm2/thanos-receive-controller-rhel8 Red Hat Enterprise Linux 8 grafana, grafana-loki, grafana-mssql, grafana-mysql, grafana-selinux, grafana-graphite, +8 more Red Hat Enterprise Linux 9 grafana, grafana-selinux Red Hat OpenShift Container Platform 4 openshift4/ose-grafana, openshift4/ose-thanos-rhel8, openshift4/ose-cluster-storage-operator, openshift4/ose-prometheus-rhel9-operator, openshift4/ose-cluster-monitoring-rhel9-operator Red Hat Openshift Container Storage 4 ocs4/mcg-rhel8-operator, ocs4/ocs-rhel8-operator, ocs4/rook-ceph-rhel8-operatornot affected: vulnerable code not present
+1 more productsfewer
Red Hat Openshift Data Foundation 4 odf4/mcg-rhel9-operator, odf4/ocs-rhel9-operator, odf4/odf-rhel8-operator
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.82% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/cortexproject/cortex | >=1.14.0, <1.14.1 >=1.13.0, <1.13.2 |
1.14.1 1.13.2 |
Affected products
- cortexproject cortex
Classification
References
-
github.com
/cortexproject/cortex/commit/03e023d8b012887b31cc268d0d011b01e1e65506
web, patch
-
cortexmetrics.io
/docs/api/#set-alertmanager-configuration
web, vendor-advisory
-
github.com
/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j
web, third-party-advisory, advisory
-
github.com
/cortexproject/cortex/releases/tag/v1.13.2
web, release-notes, third-party-advisory
-
github.com
/cortexproject/cortex/releases/tag/v1.14.1
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-23536
advisory
-
github.com
/cortexproject/cortex
package
-
pkg.go.dev
/vuln/GO-2022-1175
web
Sources
- CVE List CVE-2022-23536
- GitHub Advisory GHSA-cq2g-pw6q-hf7j
- NVD CVE-2022-23536
- OSV GO-2022-1175
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.