Security mailing lists by PureSourceCode

CVE-2021-36157

MEDIUM 5.3CVSS 3.1

Path traversal in Grafana Cortex

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.)

Published
3 Aug 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-22
Also known as
GHSA-jphm-g89m-v42p
Sources
NVDJSONOSV GHSA-jphm-g89m-v42pJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linuxfoundation cortex
cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:*
<= 1.9.0
OSV Go github.com/cortexproject/cortex <= 1.9.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 3 Aug 2021)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 2 Sep 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.