{"id":"GHSA-grj5-8x6q-hc9q","revision":"c9083f3b81324c48aa3fedd222cf7ecb","records":[{"revision":"c9083f3b81324c48aa3fedd222cf7ecb","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-grj5-8x6q-hc9q","aliases":["CVE-2021-36156"],"title":"Path traversal in Grafana Loki","description":"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.","state":0,"publishedAt":"2021-09-02T22:00:40+00:00","modifiedAt":"2026-08-07T08:12:26.2786423+00:00","affected":[{"ecosystem":"Go","name":"github.com/grafana/loki","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.3.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-36156","https://github.com/grafana/loki/pull/4020","https://github.com/grafana/loki/pull/4020#issue-694377133","https://github.com/grafana/loki","https://github.com/grafana/loki/releases/tag/v2.3.0"],"sourceUrl":"https://github.com/advisories/GHSA-grj5-8x6q-hc9q","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-grj5-8x6q-hc9q","identifiers":["GHSA-grj5-8x6q-hc9q","CVE-2021-36156"]},"retained":false,"historicalAffected":[]}],"coverage":[]}