Grafana Loki up to 3.5.8 Ruler API Endpoint /loki/api/v1/rules/ namespace path traversal
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.2 | $0-$5k | 2.77 |
Summary
A vulnerability classified as critical has been found in Grafana Loki up to 3.5.8. This impacts an unknown function of the file /loki/api/v1/rules/ of the component Ruler API Endpoint. The manipulation of the argument namespace leads to path traversal. This vulnerability is traded as CVE-2026-21726. It is possible to initiate the attack remotely. There is no exploit available. It is recommended to upgrade the affected component.
Details
A vulnerability was found in Grafana Loki up to 3.5.8. It has been rated as critical. This issue affects some unknown processing of the file /loki/api/v1/rules/ of the component Ruler API Endpoint. The manipulation of the argument namespace with an unknown input leads to a path traversal vulnerability. Using CWE to declare the problem leads to CWE-22. The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. Impacted is confidentiality. The summary by CVE is:
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.
The weakness was shared by Prasanth Sundararajan. It is possible to read the advisory at grafana.com. The identification of this vulnerability is CVE-2026-21726 since 01/05/2026. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1006 according to MITRE ATT&CK.
The vulnerability scanner Nessus provides a plugin with the ID 307378 (Linux Distros Unpatched Vulnerability : CVE-2026-21726), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 3.5.9 eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (307378). Be aware that VulDB is the high quality source for vulnerability data.
Product
Vendor
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 5.2
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 5.3
CNA Vector (GRAFANA): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Path traversalCWE: CWE-22
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 307378
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-21726
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Loki 3.5.9
Timeline
01/05/2026 CVE reserved04/16/2026 Advisory disclosed
04/16/2026 VulDB entry created
04/18/2026 VulDB entry last update
Sources
Advisory: grafana.comResearcher: Prasanth Sundararajan
Status: Confirmed
CVE: CVE-2026-21726 (🔒)
GCVE (CVE): GCVE-0-2026-21726
GCVE (VulDB): GCVE-100-357839
Entry
Created: 04/16/2026 06:47Updated: 04/18/2026 09:16
Changes: 04/16/2026 06:47 (67), 04/18/2026 09:16 (2)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.