CVE-2026-42129

Grafana · Loki Datasource Plugin

The Grafana Loki datasource plugin is vulnerable to a path traversal flaw within its callResource handler, potentially allowing unauthorized file access.

Executive summary

A high-severity path traversal vulnerability in the Grafana Loki datasource plugin could allow unauthorized actors to read arbitrary files from the underlying server.

Vulnerability

This is a path traversal vulnerability located in the callResource handler of the Loki plugin. Depending on the plugin configuration, this flaw may be reachable by authenticated users, potentially leading to unauthorized information disclosure.

Business impact

The ability to perform path traversal poses a significant risk to data confidentiality, as attackers could potentially read sensitive configuration files, credentials, or system data. With a CVSS score of 7.7, this vulnerability is categorized as High, reflecting the potential for significant impact on system integrity and the exposure of sensitive organizational data.

Remediation

Immediate Action: Identify and apply the security patch provided by Grafana to the affected Loki datasource plugin version.

Proactive Monitoring: Review web server and application logs for suspicious directory traversal patterns, such as sequences like "../" in requests directed toward the plugin endpoint.

Compensating Controls: Implement Web Application Firewall (WAF) rules designed to detect and block path traversal attempts and directory traversal payloads.

Exploitation status

Public Exploit Available: false

Analyst recommendation

Given the High severity of this vulnerability, immediate action is required to secure affected Grafana instances. Administrators should verify the current plugin version against the vendor's security advisory and prioritize patching to prevent potential unauthorized access to sensitive system resources.