CVE-2022-23536: Cortex's Alertmanager can expose local files content via specially crafted config
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56828%
CWE
Published
12/19/2022
Updated
10/2/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/cortexproject/cortex | go | = 1.14.0 | 1.14.1 |
github.com/cortexproject/cortex | go | >= 1.13.0, < 1.13.2 | 1.13.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient validation of OpsGenie configuration parameters in Alertmanager configs. The commit 03e023d adds validation for 'api_key_file' in OpsGenieConfig and 'opsgenie_api_key_file' in GlobalConfig, indicating these were previously unvalidated. The Go vulnerability report (GO-2022-1175) explicitly identifies validateAlertmanagerConfig and validateGlobalConfig as affected symbols. These functions were responsible for config validation but didn't check for dangerous file path parameters in OpsGenie configurations, enabling local file inclusion when processing malicious API requests.