CVE-2022-23536: cortexproject cortex External Control of File Name or Path
Vulnerability summary
CVE-2022-23536 is a medium (CVSS 6.5) External Control of File Name or Path vulnerability in cortexproject cortex. EPSS estimates a 0.79% chance of exploitation in the next 30 days, higher than 55.3% of scored vulnerabilities.
Timeline
- 19-12-2022PublishedVulnerability first disclosed.
- 16-04-2025Last modifiedVulnerability information updated.
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.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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.79%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
+0.03 pp
From 0.75% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-73External Control of File Name or PathThe product allows user input to control or influence paths or file names that are used in filesystem operations.
- CWE-184Incomplete List of Disallowed InputsThe product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.
- CWE-641Improper Restriction of Names for Files and Other ResourcesThe product constructs the name of a file or other resource using input from an upstream component, but it does not restrict or incorrectly restricts the resulting name.
Affected systems
Cortexproject1 product
- cortex≥ 1.13.0, ≤ 1.13.1 | = 1.14.0
Github.com/cortexproject1 product
- cortex≥ 1.13.0, < 1.13.2 | ≥ 1.14.0, < 1.14.1
Linuxfoundation1 product
- cortex1.13.0 | 1.13.1 | 1.14.0
3 vendors · 3 products
References
8 links- github.com/cortexproject/cortex/security/advisories/GHSA-cq2g-pw6q-hf7jX Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/cortexproject/cortex/releases/tag/v1.13.2X Refsource MISCWEBRelease NotesThird Party Advisory
- github.com/cortexproject/cortex/releases/tag/v1.14.1X Refsource MISCWEBRelease NotesThird Party Advisory