Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cortexproject/cortex
  4. ›
  5. CVE-2021-36157

CVE-2021-36157: Path Traversal

August 3, 2021 (updated August 11, 2021)

An issue was discovered in Grafana Cortex The header value X-Scope-OrgID is used to construct file paths for rules files, and if crafted to conduct directory traversal such as as ../../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.

References

  • grafana.com/docs/grafana/latest/release-notes/
  • nvd.nist.gov/vuln/detail/CVE-2021-36157

Code Behaviors & Features

Detect and mitigate CVE-2021-36157 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.9.0

Fixed versions

  • v1.10.0-rc.0

Solution

Upgrade to version 1.10.0-rc.0 or above. *Note*: 1.10.0-rc.0 may be an unstable version. Use caution.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Source file

go/github.com/cortexproject/cortex/CVE-2021-36157.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:44 +0000.