GitHub Advisoryadvisory · Go

GHSA-grj5-8x6q-hc9q Path traversal in Grafana Loki

MEDIUM Published 2021-09-02 Modified 2021-09-08 Official page ↗
Aliases
CVE-2021-36156
Ecosystem
Go
Packages
github.com/grafana/loki
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses
CWE-22
Reviewed
2021-08-04

Affected packages

• Go github.com/grafana/loki: < 2.3.0 → fixed in 2.3.0

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.

Related

Alias · CVE (1)

  • CVE-2021-36156 An issue was discovered in Grafana Loki through 2.2.1. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References