{"id":"CVE-2021-36157","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.)","aliases":["GHSA-jphm-g89m-v42p"],"modified":"2026-04-12T00:39:26.300545Z","published":"2021-08-03T15:15:08.667Z","references":[{"type":"ADVISORY","url":"https://grafana.com/docs/grafana/latest/release-notes/"},{"type":"FIX","url":"https://github.com/cortexproject/cortex/pull/4375"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cortexproject/cortex","events":[{"introduced":"0"},{"last_affected":"ed4f3395f8ba0098a827c5ae4ca8a2901674806c"}],"database_specific":{"cpe":"cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*","source":"CPE_FIELD","extracted_events":[{"introduced":"0"},{"last_affected":"1.9.0"}]}}],"versions":["v0.1.0-rc.0","v0.2.0","v0.2.0-rc.0","v0.3.0-rc.0","v0.4.0","v1.9.0","v1.9.0-rc.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-36157.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}