Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWdyajUtOHg2cS1oYzlx

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.

Permalink: https://github.com/advisories/GHSA-grj5-8x6q-hc9q
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWdyajUtOHg2cS1oYzlx
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: about 1 year ago


CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-grj5-8x6q-hc9q, CVE-2021-36156
References: Repository: https://github.com/grafana/loki
Blast Radius: 13.4

Affected Packages

go:github.com/grafana/loki
Dependent packages: 158
Dependent repositories: 334
Downloads:
Affected Version Ranges: < 2.3.0
Fixed in: 2.3.0
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.6.1
All unaffected versions: 6.7.8