# CVE-2021-36157: Path traversal in Grafana Cortex

Source: https://junglewise.ai/threats/cve-2021-36157-path-traversal-in-grafana-cortex  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-09-02  
License: CC BY 4.0 with a link back

CVE-2021-36157 · Severity: info · Published 2021-09-02

Path traversal in Grafana Cortex

Technologies: [github.com/cortexproject/cortex (Go)](https://junglewise.ai/threats/technologies/github-com-cortexproject-cortex). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2021-36157 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-36157 being exploited in the wild.

**How severe is CVE-2021-36157?** Informational severity, published 2 September 2021.

**Which products and versions are affected?** github.com/cortexproject/cortex (Go) SEMVER:introduced=0,last_affected=1.9.0.

**Is there a fix for CVE-2021-36157?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2021-36157?** Check whether you run github.com/cortexproject/cortex (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- github.com/cortexproject/cortex (Go) SEMVER:introduced=0,last_affected=1.9.0

## Identifiers

- CVE-2021-36157
- GHSA-jphm-g89m-v42p

## Related threats

- [GO-2022-0915 - Improper input validation in CNCF Cortex in github.com/cortexproject/cortex](https://junglewise.ai/threats/cve-2021-31232-improper-input-validation-in-cncf-cortex)
- [GO-2024-3036 - cortex establishes TLS connections with `InsecureSkipVerify` set to `true` in github.com/cortexproject/cortex](https://junglewise.ai/threats/cve-2024-41265-cortex-establishes-tls-connections-with-insecureskipverify-set-to)
- [GO-2022-1175 - Exposure of local files in github.com/cortexproject/cortex](https://junglewise.ai/threats/cve-2022-23536-cortex-s-alertmanager-can-expose-local-files-content-via)
