{"id":"CVE-2021-36156","aliases":["GHSA-grj5-8x6q-hc9q"],"url":"https://o3.security/vulnerability/CVE-2021-36156","summary":"Path traversal in Grafana Loki","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.","published":"2021-08-03T15:15:08.623Z","modified":"2026-08-07T08:12:19.363627185Z","cvss":{"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"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/grafana/loki","fixedVersion":"2.3.0"}],"fix":{"url":"https://github.com/grafana/loki/pull/4020#issue-694377133","label":"grafana/loki#4020"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T08:12:19.363627185Z"}}