{"id":"CVE-2021-36156","published":"2021-08-03T14:12:11Z","modified":"2024-08-04T00:47:43Z","title":"An issue was discovered in Grafana Loki through 2.2.1","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01477,"percentile":0.74502,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/grafana/loki/pull/4020#issue-694377133","tags":["x_refsource_MISC"]},{"url":"https://github.com/grafana/loki/releases/tag/v2.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":14.9}]},"affected":[{"ecosystem":"Go","package":"github.com/grafana/loki","vulnerableRanges":["<2.3.0"],"patched":["2.3.0"],"from":["GHSA-grj5-8x6q-hc9q"],"provenance":"source"}],"summary":{"text":"The flaw lies in Grafana Loki through version 2.2.1, where the X-Scope-OrgID header value is used to build file paths for rules files. Remote attackers able to send requests with a crafted X-Scope-OrgID containing directory traversal sequences can make Loki attempt to parse a file at an arbitrary location, with fragments of that file's contents returned in the error message.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:05Z"},"euvd":{"id":"EUVD-2021-2065","exploited":false,"provenance":"source"}}