Arbitrary File Read Affecting github.com/cortexproject/cortex/pkg/alertmanager package, versions >=1.13.0 <1.13.2>=1.14.0 <1.14.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (46th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCORTEXPROJECTCORTEXPKGALERTMANAGER-3177350
  • published20 Dec 2022
  • disclosed19 Dec 2022
  • creditAustin Robertson

Introduced: 19 Dec 2022

CVE-2022-23536  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade github.com/cortexproject/cortex/pkg/alertmanager to version 1.13.2, 1.14.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary File Read in pkg/alertmanager/api.go, via local file inclusion which can be triggered remotely by sending a malicious configuration file to the Alertmanager Set Configuration API.

Note:

This vulnerability is only exploitable if the target system has enabled -experimental.alertmanager.enable-api or enable_api: true.

Workaround

This vulnerability can be avoided by rejecting configs containing the api_key_file setting in the opsgenie_configs section and opsgenie_api_key_file in the global section.

CVSS Scores

version 3.1