CVE-2021-36156

Source
https://cve.org/CVERecord?id=CVE-2021-36156
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36156.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-36156
Aliases
Related
Published
2021-08-03T15:15:08.623Z
Modified
2026-04-10T04:55:50.157150Z
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
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.2.1"
        }
    ]
}

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.5.0
v1.6.0
v2.*
v2.0.0
v2.2.0
v2.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36156.json"