Medium severity · published Aug 3, 2021
CVE-2021-36156
An issue was discovered in Grafana Loki through 2.2.1
5.3
CVSS
1.5%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.5% · higher than 74% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LO
Loki · Grafana
through 2.2.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-36156
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-36156
Issue Tracking
https://github.com/grafana/loki/pull/4020#issue-694377133
Patch
https://github.com/grafana/loki/releases/tag/v2.3.0
More from Loki
5.3
CVE-2026-21726
Loki Path Traversal - CVE-2021-36156 Bypass
