CVE-2022-23536

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-23536
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23536.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-23536
Aliases
Published
2022-12-19T21:10:21Z
Modified
2025-11-04T19:47:26.300123Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "cwe_ids": [
        "CWE-184",
        "CWE-641",
        "CWE-73"
    ]
}
References

Affected packages

Git / github.com/cortexproject/cortex

Affected ranges

Type
GIT
Repo
https://github.com/cortexproject/cortex
Events
Database specific
{
    "versions": [
        {
            "introduced": "1.13.0"
        },
        {
            "last_affected": "1.13.1"
        }
    ]
}
Type
GIT
Repo
https://github.com/cortexproject/cortex
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "= 1.14.0"
        }
    ]
}

Affected versions

v0.*

v0.1.0
v0.1.0-rc.0
v0.2.0
v0.2.0-rc.0
v0.3.0
v0.3.0-rc.0
v0.4.0
v0.6.0
v0.6.0-rc.0
v0.7.0
v0.7.0-rc.0

v1.*

v1.0.0
v1.0.0-rc.0
v1.0.1
v1.1.0
v1.1.0-rc.0
v1.10.0
v1.10.0-rc.0
v1.10.0-rc.1
v1.12.0-rc.0
v1.14.0
v1.2.0
v1.2.0-rc.1
v1.3.0
v1.3.0-rc.0
v1.3.0-rc.1
v1.3.0-rc.2
v1.4.0
v1.4.0-rc.0
v1.4.0-rc.1
v1.5.0
v1.5.0-rc.0
v1.5.0-rc.1
v1.6.0
v1.6.0-rc.0
v1.6.0-rc.1
v1.7.0
v1.7.0-rc.0
v1.7.0-rc.1
v1.7.0-rc.2
v1.7.1
v1.8.0
v1.8.0-rc.0
v1.8.0-rc.1
v1.8.1
v1.9.0
v1.9.0-rc.0