{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-36157","published":"2021-08-03T15:15:08.667000Z","last_modified":"2026-06-17T03:58:25.850000Z","status":"Modified","cvss":{"version":"3.1","score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*","part":"a","vendor":"linuxfoundation","product":"cortex","version_end_including":"1.9.0"}],"cpes_truncated":false,"vendors":["linuxfoundation"],"products":["linuxfoundation/cortex"],"epss":{"score":0.01392,"percentile":0.72568,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-jphm-g89m-v42p","ecosystem":"Go","name":"github.com/cortexproject/cortex","purl":"pkg:golang/github.com/cortexproject/cortex","ranges":[{"introduced":"0","last_affected":"1.9.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2021-36157/","html_en":"/en/cve/CVE-2021-36157/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-36157","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-36157"},"untrusted":{"vendor_name":"Linuxfoundation","product_name":"Cortex","desc_en":"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.)","affected":[],"references":[{"url":"https://github.com/cortexproject/cortex/pull/4375","tags":["Patch","Third Party Advisory"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/","tags":["Release Notes","Vendor Advisory"]}]}}