CVE-2022-23536
MEDIUM 6.5CVSS 3.1Cortex's Alertmanager can expose local files content via specially crafted config
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.
- Published
- 19 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-184CWE-641CWE-73
- Also known as
- GHSA-cq2g-pw6q-hf7jGO-2022-1175
- Sources
- NVDJSONOSV GHSA-cq2g-pw6q-hf7jJSONOSV GO-2022-1175JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | cortexcpe:2.3:a:linuxfoundation:cortex:1.13.0:*:*:*:*:*:*:* |
= 1.13.0 | |
| NVD | linuxfoundation | cortexcpe:2.3:a:linuxfoundation:cortex:1.13.1:*:*:*:*:*:*:* |
= 1.13.1 | |
| NVD | linuxfoundation | cortexcpe:2.3:a:linuxfoundation:cortex:1.14.0:*:*:*:*:*:*:* |
= 1.14.0 | |
| OSV | Go | github.com/cortexproject/cortex | >= 1.14.0, < 1.14.1 | 1.14.1 |
| OSV | Go | github.com/cortexproject/cortex | >= 1.13.0, < 1.13.2 | 1.13.2 |
| OSV | Go | github.com/cortexproject/cortex | >= 1.13.0, < 1.13.2; >= 1.14.0, < 1.14.1 | 1.13.2, 1.14.1 |
References
- https://cortexmetrics.io/docs/api/#set-alertmanager-configuration · Vendor Advisory, WEB
- https://github.com/cortexproject/cortex/releases/tag/v1.13.2 · Release Notes, Third Party Advisory, WEB
- https://github.com/cortexproject/cortex/releases/tag/v1.14.1 · Release Notes, Third Party Advisory, WEB
- https://github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7j · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-23536 · ADVISORY
- https://github.com/cortexproject/cortex/commit/03e023d8b012887b31cc268d0d011b01e1e65506 · WEB, FIX
- https://github.com/cortexproject/cortex · PACKAGE
- https://pkg.go.dev/vuln/GO-2022-1175 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 19 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Dec 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Dec 2022)