CVE-2021-36156

loki: Path traversal in Grafana Loki

Published Aug 3, 2021 CVSS 3.1 · 5.3 Medium EPSS 1.5% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-2065 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.
Github GHSA Github GHSA GHSA-grj5-8x6q-hc9q Path traversal in Grafana Loki
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 12:47 AM
Reserved
Jul 5, 2021, 12:00 AM
Status
Modified
Published
Aug 3, 2021, 3:15 PM
Modified
Jun 17, 2026, 3:58 AM
Severity
Moderate
Public date
Aug 3, 2021, 12:00 AM