CVE-2021-36157

cortex: Grafana Cortex directory traversal

Published Aug 3, 2021 CVSS 3.1 · 5.3 Medium EPSS 1.4% KEV · Not listed
Description
An issue was discovered in Grafana Cortex through 1.9.0. The header value X-Scope-OrgID is used to construct file paths for rules files, and if crafted to conduct directory traversal such as ae ../../sensitive/path/in/deployment pathname, then Cortex will attempt to parse a rules file at that location and include some of the contents in the error message. (Other Cortex API requests can also be sent a malicious OrgID header, e.g., tricking the ingester into writing metrics to a different location, but the effect is nuisance rather than information disclosure.)

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-2088 An issue was discovered in Grafana Cortex through 1.9.0. The header value X-Scope-OrgID is used to construct file paths for rules files, and if crafted to conduct directory traversal such as ae ../../sensitive/path/in/deployment pathname, then Cortex will attempt to parse a rules file at that location and include some of the contents in the error message. (Other Cortex API requests can also be sent a malicious OrgID header, e.g., tricking the ingester into writing metrics to a different location, but the effect is nuisance rather than information disclosure.)
Github GHSA Github GHSA GHSA-jphm-g89m-v42p Path traversal in Grafana Cortex
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 12:47 AM
Reserved
Jul 5, 2021, 12:00 AM
Status
Modified
Published
Aug 3, 2021, 3:15 PM
Modified
Jun 17, 2026, 3:58 AM
Severity
Moderate
Public date
Jul 22, 2021, 12:00 AM