CVE-2021-36157

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-36157
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-36157.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-36157
Aliases
Published
2021-08-03T15:15:08Z
Modified
2025-07-01T12:37:34.243951Z
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

Affected versions

v0.*

v0.1.0
v0.1.0-rc.0
v0.2.0
v0.2.0-rc.0
v0.3.0
v0.3.0-rc.0
v0.4.0
v0.6.0
v0.6.0-rc.0
v0.7.0
v0.7.0-rc.0

v1.*

v1.0.0
v1.0.0-rc.0
v1.0.1
v1.1.0
v1.1.0-rc.0
v1.2.0
v1.2.0-rc.1
v1.3.0
v1.3.0-rc.0
v1.3.0-rc.1
v1.3.0-rc.2
v1.4.0
v1.4.0-rc.0
v1.4.0-rc.1
v1.5.0
v1.5.0-rc.0
v1.5.0-rc.1
v1.6.0
v1.6.0-rc.0
v1.6.0-rc.1
v1.7.0
v1.7.0-rc.0
v1.7.0-rc.1
v1.7.0-rc.2
v1.7.1
v1.8.0
v1.8.0-rc.0
v1.8.0-rc.1
v1.8.1
v1.9.0
v1.9.0-rc.0