{"cve":"CVE-2021-36157","nvd":{"published":"2021-08-03T15:15:08.667","modified":"2026-06-17T03:58:25.850","status":"Modified","description":"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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-22"],"references":["https://github.com/cortexproject/cortex/pull/4375","https://grafana.com/docs/grafana/latest/release-notes/","https://github.com/cortexproject/cortex/pull/4375","https://grafana.com/docs/grafana/latest/release-notes/"],"products":["linuxfoundation:cortex"],"source":"nvd","synced_at":"2026-10-19T21:21:13.713336758+00:00"},"epss":{"cve":"CVE-2021-36157","score":0.01392,"percentile":0.7237,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jphm-g89m-v42p","url":"https://osv.dev/vulnerability/GHSA-jphm-g89m-v42p","summary":"Path traversal in Grafana Cortex","modified":"2023-11-08T04:06:12.475955Z","packages":[{"ecosystem":"Go","name":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":["<=1.9.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}