CVE-2026-42129

Path traversal in the Loki data source plugin

Published Jun 22, 2026 CVSS 3.1 · 7.7 High EPSS < 1% KEV · Not listed
Description
A user with Viewer permissions can use a path traversal in the Loki data source plugin to reach administrative Loki endpoints and read sensitive backend configuration and internal service information.

Analysis

AI-generated

Technical impact

A user with Viewer permissions can use a path traversal in the Loki data source plugin to reach administrative Loki endpoints and read sensitive backend configuration and internal service information. This results in internal information disclosure that can expose system architecture and sensitive backend settings.

Affected Systems

The vulnerability affects Grafana OSS installations that use the Loki datasource plugin. The affected versions are not documented in the advisory; therefore, any Grafana OSS deployment that includes the plugin is potentially exposed until an official fix is applied.

Risk and Exploitability

The CVSS score of 7.7 indicates a high severity medium‑to‑high impact risk. The EPSS score of < 1% indicates that exploitation is very unlikely but not impossible, and the vulnerability is not recorded in CISA’s KEV catalog. Exploitation requires only valid Viewer‑role credentials, meaning any authenticated Grafana user who has Viewer permissions could trigger the exploit. An attacker can then view internal Loki configuration data and other service metadata, potentially aiding further attacks or revealing sensitive system architecture.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Grafana OSS to a version that includes the Loki plugin fix or apply the specific patch released by Grafana.
  • Restrict or remove Viewer‑role permissions for users who do not need access to internal data, or convert them to a lower‑privileged role if available.
  • Configure Loki to disable or restrict administrative endpoints or place them behind additional authentication and authorization controls.

Generated by OpenCVE AI on August 2, 2026 at 01:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-f74p-cwhp-x2wx Grafana Loki datasource plugin's callResource handler contains a path traversal vulnerability.
History
Type Values Removed Values Added
Description The Loki datasource plugin's callResource handler contains a path traversal vulnerability. An authenticated Viewer-role user can escape the plugin's resource sandbox and access administrative Loki endpoints (e.g. /config, /services, /ready) to extract sensitive backend configuration and internal service information. A user with Viewer permissions can use a path traversal in the Loki data source plugin to reach administrative Loki endpoints and read sensitive backend configuration and internal service information.
Title Path Traversal in Loki Datasource leads to Internal Information Disclosure Path traversal in the Loki data source plugin
Type Values Removed Values Added
First Time appeared Grafana
Grafana grafana
Grafana loki Datasource
Vendors & Products Grafana
Grafana grafana
Grafana loki Datasource
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-22
Type Values Removed Values Added
Description The Loki datasource plugin's callResource handler contains a path traversal vulnerability. An authenticated Viewer-role user can escape the plugin's resource sandbox and access administrative Loki endpoints (e.g. /config, /services, /ready) to extract sensitive backend configuration and internal service information.
Title Path Traversal in Loki Datasource leads to Internal Information Disclosure
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GRAFANA
Published
Updated
Aug 27, 2026, 5:22 PM
Reserved
Apr 24, 2026, 3:38 PM
Status
Modified
Published
Jun 22, 2026, 2:17 PM
Modified
Oct 25, 2026, 11:10 PM