{"id":"CVE-2021-36156","aliases":["GHSA-grj5-8x6q-hc9q"],"summary":"An issue was discovered in Grafana Loki through 2.2.1.","published_at":"2021-08-03T00:00:00Z","modified_at":"2026-08-07T08:12:26.278642Z","products":[{"slug":"loki","name":"Grafana Loki","category":"monitoring"},{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"medium","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.014770000241696835,"percentile":0.7442100048065186,"date":"2026-11-19T00:00:00Z"},"priority":7.3,"details":"An issue was discovered in Grafana Loki through 2.2.1. 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 Loki will attempt to parse a rules file at that location and include some of the contents in the error message.","affected_stack":[{"ecosystem":"Go","package":"github.com/grafana/loki","purl":"pkg:golang/github.com/grafana/loki","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.0"}]}],"fixed":["2.3.0"],"provider":"osv","source":"GHSA-grj5-8x6q-hc9q","relation":"self"},{"ecosystem":"Red Hat:service_mesh:2.1","package":"servicemesh-grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-36156","relation":"self"}],"affected_other":[{"ecosystem":"NVD","package":"grafana:loki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.2.1"}]}],"provider":"nvd","source":"CVE-2021-36156","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/loki-rhel8-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.1","cpe":"cpe:/a:redhat:service_mesh:2.1","status":"affected","packages":["servicemesh-grafana"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/acm-grafana-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["grafana","grafana-azure-monitor","grafana-cloudwatch","grafana-elasticsearch","grafana-graphite","grafana-influxdb","grafana-loki","grafana-mssql","grafana-mysql","grafana-opentsdb","grafana-postgres","grafana-prometheus","grafana-selinux","grafana-stackdriver"],"package_count":14,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["grafana","grafana-selinux"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-grafana"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-36156"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2021-36156","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-36156","license":"CC-BY-4.0","published_at":"2021-08-03T14:12:11Z","modified_at":"2024-08-04T00:47:43.938Z","summary":"An issue was discovered in Grafana Loki through 2.2.1.","details":"An issue was discovered in Grafana Loki through 2.2.1. 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 Loki will attempt to parse a rules file at that location and include some of the contents in the error message.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/grafana/loki/pull/4020#issue-694377133"},{"type":"WEB","url":"https://github.com/grafana/loki/releases/tag/v2.3.0"}]},{"provider":"nvd","source_id":"CVE-2021-36156","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36156","severity":[],"affected":[{"ecosystem":"NVD","package":"grafana:loki","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.2.1"}]}],"provider":"nvd","source":"CVE-2021-36156","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-grj5-8x6q-hc9q","relation":"self","url":"https://osv.dev/vulnerability/GHSA-grj5-8x6q-hc9q","license":"CC-BY-4.0","published_at":"2021-09-02T22:00:40Z","modified_at":"2026-08-07T08:12:26.278642Z","summary":"Path traversal in Grafana Loki","details":"An issue was discovered in Grafana Loki through 2.2.1. 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 Loki will attempt to parse a rules file at that location and include some of the contents in the error message.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"GHSA-grj5-8x6q-hc9q"}],"affected":[{"ecosystem":"Go","package":"github.com/grafana/loki","purl":"pkg:golang/github.com/grafana/loki","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.0"}]}],"fixed":["2.3.0"],"provider":"osv","source":"GHSA-grj5-8x6q-hc9q","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36156"},{"type":"WEB","url":"https://github.com/grafana/loki/pull/4020"},{"type":"WEB","url":"https://github.com/grafana/loki/pull/4020#issue-694377133"},{"type":"PACKAGE","url":"https://github.com/grafana/loki"},{"type":"WEB","url":"https://github.com/grafana/loki/releases/tag/v2.3.0"}]},{"provider":"redhat-vex","source_id":"CVE-2021-36156","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-36156","license":"CC-BY-4.0","published_at":"2021-08-03T00:00:00Z","modified_at":"2024-03-02T05:32:20Z","summary":"loki: Path traversal in Grafana Loki","details":"A flaw was found in Grafana Loki that could allow a remote attacker to traverse directories on the system, caused by improper input validation by the X-Scope-OrgID header value. An attacker could send a specially-crafted URL request containing \"dot dot\" sequences (/../) to view some of the contents in the error message.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"CVE-2021-36156"},{"type":"Red Hat","score":"Moderate","source":"CVE-2021-36156"}],"affected":[{"ecosystem":"Red Hat:service_mesh:2.1","package":"servicemesh-grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-36156","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/loki-rhel8-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.1","cpe":"cpe:/a:redhat:service_mesh:2.1","status":"affected","packages":["servicemesh-grafana"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/acm-grafana-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["grafana","grafana-azure-monitor","grafana-cloudwatch","grafana-elasticsearch","grafana-graphite","grafana-influxdb","grafana-loki","grafana-mssql","grafana-mysql","grafana-opentsdb","grafana-postgres","grafana-prometheus","grafana-selinux","grafana-stackdriver"],"package_count":14,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["grafana","grafana-selinux"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-36156"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-grafana"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-36156"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-36156.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-36156"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2183161"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-36156"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36156"},{"type":"WEB","url":"https://github.com/advisories/GHSA-grj5-8x6q-hc9q"}]}],"references":[{"type":"WEB","url":"https://github.com/grafana/loki/pull/4020#issue-694377133"},{"type":"WEB","url":"https://github.com/grafana/loki/releases/tag/v2.3.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36156"},{"type":"WEB","url":"https://github.com/grafana/loki/pull/4020"},{"type":"PACKAGE","url":"https://github.com/grafana/loki"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-36156.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-36156"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2183161"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-36156"},{"type":"WEB","url":"https://github.com/advisories/GHSA-grj5-8x6q-hc9q"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2021-36156","url":"https://www.cve.org/CVERecord?id=CVE-2021-36156","license":"CC-BY-4.0","modified_at":"2024-08-04T00:47:43.938Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-36156","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36156","relation":"self"},{"provider":"osv","source_id":"GHSA-grj5-8x6q-hc9q","url":"https://osv.dev/vulnerability/GHSA-grj5-8x6q-hc9q","license":"CC-BY-4.0","modified_at":"2026-08-07T08:12:26.278642Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-36156","url":"https://access.redhat.com/security/cve/CVE-2021-36156","license":"CC-BY-4.0","modified_at":"2024-03-02T05:32:20Z","relation":"self"}]}
