{"id":"CVE-2021-36156","details":"An issue was discovered in Grafana Loki through 2.2.1. 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 Loki will attempt to parse a rules file at that location and include some of the contents in the error message.","aliases":["GHSA-grj5-8x6q-hc9q"],"modified":"2026-04-10T04:55:50.157150Z","published":"2021-08-03T15:15:08.623Z","related":["CGA-8338-mmpw-qj3m"],"references":[{"type":"REPORT","url":"https://github.com/grafana/loki/pull/4020#issue-694377133"},{"type":"FIX","url":"https://github.com/grafana/loki/releases/tag/v2.3.0"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/grafana/loki","events":[{"introduced":"0"},{"last_affected":"babea82ef558c4b4dc685fd4ca677de1f0a7ee8f"},{"fixed":"f5fd029660034d31833ff1d2620bb82d1c1618af"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.2.1"}]}}],"versions":["v0.1.0","v0.2.0","v0.3.0","v0.4.0","v1.0.0","v1.0.1","v1.1.0","v1.2.0","v1.3.0","v1.5.0","v1.6.0","v2.0.0","v2.2.0","v2.2.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36156.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"}]}