SCA: security update for github.com/cortexproject/cortex (GHSA-cq2g-pw6q-hf7j)

medium Tenable Cloud Security Plugin ID 414014

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2022-23536)

See Also

https://github.com/advisories/GHSA-cq2g-pw6q-hf7j

Plugin Details

Severity: Medium

ID: 414014

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 8/19/2025

Risk Information

VPR

Risk Factor: Low

Score: 3.6

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:N/A:N

CVSS Score Source: CVE-2022-23536

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 12/19/2022

Vulnerability Publication Date: 12/19/2022

Reference Information

CVE: CVE-2022-23536