ADVISORIES

GitHub Advisory Database

GHSA-9493-h4f5-633x

Grafana: Path traversal in the Tempo and Loki data source plugins

Details

The Tempo and Loki datasource plugins construct backend HTTP requests by interpolating user-supplied input into URL paths without sanitization, enabling path traversal. A Viewer-role user can: (1) capture admin-configured datasource credentials (secureJsonData custom headers) by traversing to an attacker-controlled endpoint, (2) invoke state-changing admin endpoints on Tempo (e.g. /flush, /shutdown), and (3) exfiltrate internal service data via Loki's CallResource which returns full HTTP response bodies.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/grafana/grafana
From 2.0.0-beta1, no fix listed
Gogithub.com/grafana/grafana
From 12.0.0, no fix listed
Gogithub.com/grafana/grafana
From 12.3.0, no fix listed
Gogithub.com/grafana/grafana
From 13.0.0, no fix listed
Gogithub.com/grafana/grafana
From 12.4.0, no fix listed
Gogithub.com/grafana/grafana
All versions before 1.9.2-0.20260616075434-82ef13993059 (fixed in 1.9.2-0.20260616075434-82ef13993059)

References