1 line
1.7 KiB
JSON
1 line
1.7 KiB
JSON
{"schema_version":"1.9.0","id":"GHSA-jphm-g89m-v42p","published":"2021-09-02T21:59:50Z","modified":"2023-11-08T04:06:12.475955Z","aliases":["CVE-2021-36157"],"summary":"Path traversal in Grafana Cortex","details":"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":[{"package":{"name":"github.com/cortexproject/cortex","ecosystem":"Go","purl":"pkg:golang/github.com/cortexproject/cortex"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.9.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-jphm-g89m-v42p/GHSA-jphm-g89m-v42p.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36157"},{"type":"WEB","url":"https://github.com/cortexproject/cortex/pull/4375"},{"type":"WEB","url":"https://github.com/cortexproject/cortex/commit/d9e1f81f40c607b9e97c2fc6db70ae54679917c4"},{"type":"PACKAGE","url":"https://github.com/cortexproject/cortex"},{"type":"WEB","url":"https://grafana.com/docs/grafana/latest/release-notes"}],"database_specific":{"cwe_ids":["CWE-22"],"github_reviewed":true,"github_reviewed_at":"2021-08-04T18:31:56Z","nvd_published_at":"2021-08-03T15:15:00Z","severity":"MODERATE"}} |