-
CVSS Score
-| 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 |
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.