MEDIUM 5.3
GHSA-grj5-8x6q-hc9q
Path traversal in Grafana Loki
Quick fix
GHSA-grj5-8x6q-hc9q — github.com/grafana/loki: upgrade to the fixed version with the command below.
go get github.com/grafana/loki@v2.3.0 Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go / github.com/grafana/loki
Introduced in:
0 Fixed in: 2.3.0 Fix
go get github.com/grafana/loki@v2.3.0