Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 66%

CVE-2026-21726: Vulnerability in Grafana Loki

0
Medium
VulnerabilityCVE-2026-21726cvecve-2026-21726
Published: 04/15/2026 (04/15/2026, 19:24:31 UTC)
Source: CVE Database V5
Vendor/Project: Grafana
Product: Loki

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.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected software

GitHub Actionsmore threats →ai
grafana/loki
pkg:github/grafana/loki
Affected versions
=2.3.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 07:35:42 UTC

Technical Analysis

This vulnerability in Grafana Loki 2.3.0 involves improper validation of the namespace parameter in the Ruler API endpoint /loki/api/v1/rules/{namespace}. The previous fix for CVE-2021-36156 validated the parameter after a single URL decode, but an attacker can bypass this by double encoding the path traversal sequences. This allows unauthorized reading of files on the system. The CVSS 3.1 score is 5.3 (medium severity) with network attack vector, low attack complexity, no privileges or user interaction required, and confidentiality impact only.

Potential Impact

An attacker can read arbitrary files on the system hosting Grafana Loki by exploiting the path traversal vulnerability in the Ruler API endpoint. This compromises confidentiality but does not affect integrity or availability. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are currently available. Until a patch is released, consider restricting access to the Ruler API endpoint to trusted users or networks to reduce exposure.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GRAFANA
Date Reserved
2026-01-05T09:26:06.215Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69dfeeb382d89c981f942271

Added to database: 04/15/2026, 20:01:55 UTC

Last enriched: 07/30/2026, 07:35:42 UTC

Last updated: 07/31/2026, 21:26:44 UTC

Views: 227

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses