Vulnerability Details : CVE-2021-36156
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.
Vulnerability category: Directory traversal
Products affected by CVE-2021-36156
- cpe:2.3:a:grafana:loki:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-36156
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 34 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-36156
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
3.9
|
1.4
|
NIST |
CWE ids for CVE-2021-36156
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-36156
-
https://github.com/grafana/loki/pull/4020#issue-694377133
Restrict path segments in TenantIDs (CVE-2021-36156 CVE-2021-36157) by simonswine · Pull Request #4020 · grafana/loki · GitHubIssue Tracking;Third Party Advisory
-
https://github.com/grafana/loki/releases/tag/v2.3.0
Release v2.3.0 · grafana/loki · GitHubPatch;Third Party Advisory
Jump to