CVE-2021-36157

Source
https://cve.org/CVERecord?id=CVE-2021-36157
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36157.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-36157
Aliases
Published
2021-08-03T15:15:08.667Z
Modified
2026-07-09T00:36:22.369473Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.)

References

Affected packages

Git / github.com/cortexproject/cortex

Affected ranges

Type
GIT
Repo
https://github.com/cortexproject/cortex
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
Show details
{
    "cpe": "cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.9.0"
        }
    ],
    "source": "CPE_RANGE"
}

Affected versions

v0.*
v0.1.0-rc.0
v0.2.0
v0.2.0-rc.0
v0.3.0-rc.0
v0.4.0
v1.*
v1.9.0
v1.9.0-rc.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36157.json"