# CVE-2026-21726: Loki Path Traversal - CVE-2021-36156 Bypass

- Severity: Medium 5.3 (CVSS:3.1, scored by GRAFANA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.90%, higher than 60% of CVEs (2026-12-01)
- Published: 2026-04-15T19:24:31.268Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-497x-rrr9-68jp, GO-2026-5115
- Related: CGA-w6q8-cj25-57rp
- Weaknesses: CWE-22, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GRAFANA

## 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.

(As written by CVE List.)

## Affected

- Grafana Loki: from 2.3.0 before 3.5.9; before 3.6.4
- github.com/grafana/loki/v3 (Go): before 3.6.4
- github.com/grafana/loki (Go): all versions

## Every score

- GRAFANA: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://grafana.com/security/security-advisories/cve-2026-21726> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-21726> (advisory)
- <https://github.com/grafana/loki> (package)
- <https://github.com/advisories/GHSA-497x-rrr9-68jp> (advisory)

## Sources

- CVE List: [CVE-2026-21726](https://www.cve.org/CVERecord?id=CVE-2026-21726), CVE Terms of Use, modified 2026-08-27
- GitHub Advisory Database: [GHSA-497x-rrr9-68jp](https://github.com/advisories/GHSA-497x-rrr9-68jp), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5115](https://pkg.go.dev/vuln/GO-2026-5115), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-21726](https://nvd.nist.gov/vuln/detail/CVE-2026-21726), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-21726 · Whole record: https://cve.day/CVE-2026-21726.json · Rebuilt by cve.day 2026-11-25T22:59:18.861Z
