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

Published Apr 15, 2026
·
Updated

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 Software

3 affected componentsFixes available
Grafana Labs Grafana Loki
go/github.com/grafana/loki/v3<3.6.4
3.6.4
Grafana Loki<3.6.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/grafana/loki/v3 to a version that resolves this vulnerability.

    Fixed in 3.6.4
  2. Upgrade

    Upgrade Grafana Loki to a version that resolves this vulnerability.

    Patch CVE-2021-36156

Event History

Apr 15, 2026
CVE Published
via MITRE·07:24 PM
Data Sourced
via MITRE·07:24 PM
DescriptionSeverity
Data Sourced
via NVD·08:16 PM
DescriptionSeverity
Data Sourced
via NVD·08:16 PM
WeaknessAffected Software
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-21726?

CVE-2026-21726 has a high severity due to its ability to allow unauthorized file access through path traversal.

2

How do I fix CVE-2026-21726?

To fix CVE-2026-21726, ensure you upgrade to the latest version of Grafana Loki that addresses this vulnerability.

3

What are the potential impacts of CVE-2026-21726?

The potential impacts of CVE-2026-21726 include unauthorized access to sensitive files on the server.

4

Which versions of Grafana Loki are affected by CVE-2026-21726?

CVE-2026-21726 affects all versions of Grafana Loki prior to the patch deployment that addresses this vulnerability.

5

What is a path traversal vulnerability like CVE-2026-21726?

A path traversal vulnerability like CVE-2026-21726 allows attackers to manipulate file paths to gain unauthorized access to files outside of intended directories.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203