{"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-07-17T21:16:36.516058739Z","published":"2021-08-03T15:15:08.623Z","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"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"2.2.1"}],"source":"CPE_FIELD","cpe":"cpe:2.3:a:grafana:loki:*:*:*:*:*:*:*:*"}}],"versions":["v2.2.0","v2.2.1","v2.0.0","v1.6.0","v1.5.0","v1.3.0","v1.2.0","v1.1.0","v1.0.0","v0.4.0","v0.3.0","v0.2.0","v1.0.1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-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"}]}