{"id":"GHSA-grj5-8x6q-hc9q","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.","aliases":["CVE-2021-36156"],"modified":"2026-08-07T08:12:26.278642309Z","published":"2021-09-02T22:00:40Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-08-04T18:52:20Z","nvd_published_at":"2021-08-03T15:15:00Z","cwe_ids":["CWE-22"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36156"},{"type":"WEB","url":"https://github.com/grafana/loki/pull/4020"},{"type":"WEB","url":"https://github.com/grafana/loki/pull/4020#issue-694377133"},{"type":"PACKAGE","url":"https://github.com/grafana/loki"},{"type":"WEB","url":"https://github.com/grafana/loki/releases/tag/v2.3.0"}],"affected":[{"package":{"name":"github.com/grafana/loki","ecosystem":"Go","purl":"pkg:golang/github.com/grafana/loki"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-grj5-8x6q-hc9q/GHSA-grj5-8x6q-hc9q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}