CVE-2021-36157
Red Hat Enterprise Linux CoreOS (RHCOS) vulnerability analysis and mitigation

Overview

A directory traversal vulnerability was discovered in Grafana Cortex through version 1.9.0. The vulnerability stems from the improper handling of the X-Scope-OrgID header value, which is used to construct file paths for rules files (NVD).

Technical details

The vulnerability exists in the way Grafana Cortex handles the X-Scope-OrgID header when constructing file paths. If crafted maliciously, an attacker could use path traversal characters (../../) in the header value to access files outside the intended directory structure. This could potentially lead to unauthorized access to sensitive files that Cortex has permission to read (GitHub PR).

Impact

The vulnerability could allow an attacker with suitable access to trick Cortex into sending the contents of files it has access to. When exploited, the attacker could potentially read sensitive files through error messages when Cortex attempts to parse these files as rules files (GitHub PR).

Mitigation and workarounds

Several mitigation strategies are available: 1) Upgrade to a patched version of Cortex, 2) Use a proxy in front of Cortex that supplies the OrgID header, preventing it from being crafted by an attacker, 3) Run Cortex with limited access to sensitive files, such as in a container or chroot, and as a user with limited access permissions (GitHub PR).

Additional resources


SourceThis report was generated using AI

Related Red Hat Enterprise Linux CoreOS (RHCOS) vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-11561HIGH8.8
  • Rocky LinuxRocky Linux
  • libsss_nss_idmap
NoYesOct 09, 2025
CVE-2025-52565HIGH8.4
  • cAdvisorcAdvisor
  • kernel-64k-debug
NoYesNov 06, 2025
CVE-2025-4953HIGH7.4
  • PodmanPodman
  • container-tools:rhel8::python3-podman
NoYesSep 16, 2025
CVE-2025-52881HIGH7.3
  • cAdvisorcAdvisor
  • podman-plugins
NoYesNov 06, 2025
CVE-2025-31133HIGH7.3
  • cAdvisorcAdvisor
  • kernel-zfcpdump-modules-partner
NoYesNov 06, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management