CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021 · Linuxfoundation

CVE-2021-36157
Linuxfoundation Cortex vulnerability

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.)

Affected products

Cortex. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Linuxfoundation Cortex runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Linuxfoundation products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.