CVE-2021-36156
loki: Path traversal in Grafana Loki
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 3, 2021
Updated · June 4, 2026
Description
A flaw was found in Grafana Loki that could allow a remote attacker to traverse directories on the system, caused by improper input validation by the X-Scope-OrgID header value. An attacker could send a specially-crafted URL request containing "dot dot" sequences (/../) to view some of the contents in the error message.
Statement
This is a pathname parsing issue in Grafana Loki, which we don't ship in Red Hat Enterprise Linux - 8 and 9. Hence, not-affected.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')