Bug 2183169 (CVE-2021-36157) - CVE-2021-36157 cortex: Grafana Cortex directory traversal
Summary: CVE-2021-36157 cortex: Grafana Cortex directory traversal
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-36157
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2183170 2185556 2185557 2185717 2185718 2185719
Blocks: 2180566
TreeView+ depends on / blocked
 
Reported: 2023-03-30 13:35 UTC by Avinash Hanwate
Modified: 2023-10-31 12:54 UTC (History)
20 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-05-31 01:12:33 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:3304 0 None None None 2023-05-30 20:13:59 UTC
Red Hat Product Errata RHSA-2023:5006 0 None None None 2023-10-31 12:54:43 UTC

Description Avinash Hanwate 2023-03-30 13:35:54 UTC
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.)

https://github.com/cortexproject/cortex/pull/4375
https://grafana.com/docs/grafana/latest/release-notes/

Comment 1 Avinash Hanwate 2023-03-30 13:36:14 UTC
Created grafana tracking bugs for this issue:

Affects: fedora-all [bug 2183170]

Comment 6 errata-xmlrpc 2023-05-30 20:13:57 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2023:3304 https://access.redhat.com/errata/RHSA-2023:3304

Comment 7 Product Security DevOps Team 2023-05-31 01:12:08 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-36157

Comment 8 errata-xmlrpc 2023-10-31 12:54:41 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

Via RHSA-2023:5006 https://access.redhat.com/errata/RHSA-2023:5006


Note You need to log in before you can comment on or make changes to this bug.