CVE-2021-36157
mediumpriority · track · 21EPSS 0.014 · 72 %ileDEEUUSEPSS · scored 2026-10-27
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.)
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (21)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-1354Red Hat OpenShift Container Platform: Mehrere SchwachstellenDeutsch2023-06-04csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat OpenShift Container Platform ausnutzen, um einen Denial of Service Angriff durchzuführen oder Informationen offenzulegen.
- GHSA-jphm-g89m-v42pPath traversal in Grafana Cortex2021-09-02ghsa · osvUS
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.)
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/cortexproject/cortex/pull/4375cnnvd
- https://grafana.com/docs/grafana/latest/release-notes/cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-36157cnnvd
- https://github.com/cortexproject/cortex/pull/4375enisa_euvd
- https://grafana.com/docs/grafana/latest/release-notes/enisa_euvd
- https://github.com/cortexproject/cortex/pull/4375PatchThird Party Advisorynvd
- https://grafana.com/docs/grafana/latest/release-notes/Release NotesVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan