5.3medium
Loki Path Traversal - CVE-2021-36156 Bypass
- Severity
- 5.3medium CVSS:3.1 by GRAFANA
- Exploit likelihood
- 0.90% (higher than 60% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GRAFANA
- Also known as
- GHSA-497x-rrr9-68jpGO-2026-5115
Description
The CVE-2021-36156 fix validates the namespace parameter for path traversal sequences after a single URL decode, by double encoding, an attacker can read files at the Ruler API endpoint /loki/api/v1/rules/{namespace} Thanks to Prasanth Sundararajan for reporting this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Grafana Loki | from 2.3.0 before 3.5.9, before 3.6.4 | CVE List, NVD |
| github.com/grafana/loki/v3 (Go) | before 3.6.4 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/grafana/loki (Go) | all versions | Go Vulnerability Database |
All scores
| GRAFANA | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
The CVE-2021-36156 fix validates the namespace parameter for path traversal sequences after a single URL decode, by double encoding, an attacker can read files at the Ruler API endpoint /loki/api/v1/rules/{namespace} Thanks to Prasanth Sundararajan for reporting this vulnerability.
Go Vulnerability Database
Grafana Loki Path Traversal - CVE-2021-36156 Bypass in github.com/grafana/loki
NVD (es)
La corrección de CVE-2021-36156 valida el parámetro namespace para secuencias de salto de ruta después de una única decodificación URL, mediante doble codificación, un atacante puede leer archivos en el endpoint de la API de Ruler /loki/api/v1/rules/{namespace} Gracias a Prasanth Sundararajan por informar sobre esta vulnerabilidad.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-21726 changed 2026-08-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-497x-rrr9-68jp changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5115 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2026-21726 changed 2026-10-26 | Public domain |