CVE-2021-36156

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-36156
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-36156.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-36156
Aliases
Related
Published
2021-08-03T15:15:08Z
Modified
2025-01-08T08:14:06.653844Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/grafana/loki

Affected ranges

Type
GIT
Repo
https://github.com/grafana/loki
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected

Affected versions

v0.*

v0.1.0
v0.2.0
v0.3.0
v0.4.0

v1.*

v1.0.0
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v1.4.0
v1.4.1
v1.5.0
v1.6.0
v1.6.1

v2.*

v2.0.0
v2.0.1
v2.1.0
v2.2.0
v2.2.1