logo

CVE-2021-36157 github.com/cortexproject/cortex

Package

Manager: go
Name: github.com/cortexproject/cortex
Vulnerable Version: >=0 <=1.9.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00318 pctl0.54218

Details

Path traversal in Grafana Cortex An issue was discovered in Grafana Cortex through 1.9.0. The header value X-Scope-OrgID is used to construct file paths for rules files, and if crafted to conduct directory traversal such as ae ../../sensitive/path/in/deployment pathname, then Cortex will attempt to parse a rules file at that location and include some of the contents in the error message. (Other Cortex API requests can also be sent a malicious OrgID header, e.g., tricking the ingester into writing metrics to a different location, but the effect is nuisance rather than information disclosure.)

Metadata

Created: 2021-09-02T21:59:50Z
Modified: 2021-08-30T23:21:48Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-jphm-g89m-v42p/GHSA-jphm-g89m-v42p.json
CWE IDs: ["CWE-22"]
Alternative ID: GHSA-jphm-g89m-v42p
Finding: F063
Auto approve: 1