Vulnerability · Published Aug 3, 2021 · Assigned by mitre
CVE-2021-36156
Medium 5.3
In plain English
A medium-severity security flaw in the github.com/grafana/loki package (Go). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.3Medium
Exploit odds (30 days)1.5%top 26.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/grafana/loki | 2.3.0 | GHSA-grj5-8x6q-hc9q |
Affected products (as reported)
References
- https://github.com/grafana/loki/pull/4020#issue-694377133 x_refsource_MISC
- https://github.com/grafana/loki/releases/tag/v2.3.0 x_refsource_MISC