CVE-2021-36156 – github.com/grafana/loki
Package
Manager: go
Name: github.com/grafana/loki
Vulnerable Version: >=0 <2.3.0
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00395 pctl0.596
Details
Path traversal in Grafana Loki 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.
Metadata
Created: 2021-09-02T22:00:40Z
Modified: 2021-09-08T18:11:29Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-grj5-8x6q-hc9q/GHSA-grj5-8x6q-hc9q.json
CWE IDs: ["CWE-22"]
Alternative ID: GHSA-grj5-8x6q-hc9q
Finding: F063
Auto approve: 1