{"cve":"CVE-2021-36156","nvd":{"published":"2021-08-03T15:15:08.623","modified":"2026-06-17T03:58:25.737","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-22"],"references":["https://github.com/grafana/loki/pull/4020#issue-694377133","https://github.com/grafana/loki/releases/tag/v2.3.0","https://github.com/grafana/loki/pull/4020#issue-694377133","https://github.com/grafana/loki/releases/tag/v2.3.0"],"products":["grafana:loki"],"source":"nvd","synced_at":"2026-10-19T21:21:13.713336758+00:00"},"epss":{"cve":"CVE-2021-36156","score":0.01477,"percentile":0.73871,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-grj5-8x6q-hc9q","url":"https://osv.dev/vulnerability/GHSA-grj5-8x6q-hc9q","summary":"Path traversal in Grafana Loki","modified":"2026-08-07T08:12:26.278642309Z","packages":[{"ecosystem":"Go","name":"github.com/grafana/loki","purl":"pkg:golang/github.com/grafana/loki","ranges":["<2.3.0"],"fixed":["2.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}