CVE-2021-36156
JSON

5.3medium

Path traversal in Grafana Loki

Severity
5.3medium CVSS:3.1 by NVD
Exploit likelihood
2.55% (higher than 85% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-grj5-8x6q-hc9q

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/grafana/loki (Go)before 2.3.0GitHub Advisory Database
grafana lokiup to 2.2.1NVD

All scores

GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

What each source says

CVE List

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.

NVD (es)

Se ha detectado un problema en Grafana Loki versiones hasta 2.2.1. El valor del encabezado X-Scope-OrgID es usado para diseñar las rutas de los archivos de reglas, y si se diseña para realizar un salto de directorio como ae ../../sensitive/path/in/deployment pathname, Loki intentará entonces analizar un archivo de reglas en esa ubicación e incluirá parte del contenido en el mensaje de error

References

Sources

SourceRecordLicence
CVE ListCVE-2021-36156 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-grj5-8x6q-hc9q changed 2026-08-07CC-BY-4.0
NVDCVE-2021-36156 changed 2026-06-17Public domain