CVE-2021-36157

CVSS V2 Medium 5 CVSS V3 Medium 5.3
Description
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.)
Overview
  • CVE ID
  • CVE-2021-36157
  • Assigner
  • cve@mitre.org
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2021-08-03T15:15:08
  • Last Modified Date
  • 2021-08-11T17:23:03
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:linuxfoundation:cortex:*:*:*:*:*:*:*:* 1 OR 1.9.0
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:N/AC:L/Au:N/C:P/I:N/A:N
  • Access Vector
  • NETWORK
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • PARTIAL
  • Integrity Impact
  • NONE
  • Availability Impact
  • NONE
  • Base Score
  • 5
  • Severity
  • MEDIUM
  • Exploitability Score
  • 10
  • Impact Score
  • 2.9
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Attack Vector
  • NETWORK
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • LOW
  • Availability Impact
  • NONE
  • Base Score
  • 5.3
  • Base Severity
  • MEDIUM
  • Exploitability Score
  • 3.9
  • Impact Score
  • 1.4
References
Reference URL Reference Tags
https://github.com/cortexproject/cortex/pull/4375 Patch Third Party Advisory
https://grafana.com/docs/grafana/latest/release-notes/ Release Notes Vendor Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 06:57:40 Added to TrackCVE
2022-12-05 07:15:10 2021-08-03T15:15Z 2021-08-03T15:15:08 CVE Published Date updated
2022-12-05 07:15:10 2021-08-11T17:23:03 CVE Modified Date updated
2022-12-05 07:15:10 Analyzed Vulnerability Status updated