CVE-2021-36156
mediumpriority · track · 22EPSS 0.015 · 74 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-grj5-8x6q-hc9qPath traversal in Grafana Loki2021-09-02ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://github.com/grafana/loki/pull/4020#issue-694377133cnnvd
- https://github.com/grafana/loki/releases/tag/v2.3.0cnnvd
- https://grafana.com/docs/grafana/latest/release-notes/cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-36156cnnvd
- https://github.com/grafana/loki/pull/4020#issue-694377133enisa_euvd
- https://github.com/grafana/loki/releases/tag/v2.3.0enisa_euvd
- https://github.com/grafana/loki/pull/4020#issue-694377133Issue TrackingThird Party Advisorynvd
- https://github.com/grafana/loki/releases/tag/v2.3.0PatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan