Advisory record · GHSA-grj5-8x6q-hc9q

Path traversal in Grafana Loki

CVSS 5.3 MediumEPSS 0.015 · 74th percentile

Published by the GitHub Advisory Database at 2 Sept 2021, 22:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/grafana/lokiGo<2.3.02.3.0
Identifiers
GHSA-grj5-8x6q-hc9q · CVE-2021-36156
Weakness (CWE)
CWE-22
Published
2 Sept 2021
Updated
7 Aug 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Grafana Loki versions before 2.3.0 are vulnerable to path traversal through the X-Scope-OrgID header, which is used to build file paths for rules files. A remote attacker who can send requests to Loki can supply a crafted header value to make Loki attempt to parse files outside the intended directory, and some of their contents are returned in error messages. Upgrade to Loki 2.3.0 or later.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.015, the 74th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:53 UTC First seen by agentprime
  2. 31 Oct 2026, 14:53 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.