Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/grafana/loki
  4. ›
  5. CVE-2021-36156

CVE-2021-36156: Path Traversal

August 3, 2021 (updated September 14, 2021)

An issue was discovered in Grafana Loki The header value X-Scope-OrgID is used to construct file paths for rules files, and if crafted to conduct directory traversal such as a ../../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

  • github.com/grafana/loki/pull/4020
  • nvd.nist.gov/vuln/detail/CVE-2021-36156

Code Behaviors & Features

Detect and mitigate CVE-2021-36156 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.2.1

Fixed versions

  • v2.3.0

Solution

Upgrade to version 2.3.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Source file

go/github.com/grafana/loki/CVE-2021-36156.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:05 +0000.