原始 OSV JSON{
"id": "GHSA-grj5-8x6q-hc9q",
"aliases": [
"CVE-2021-36156"
],
"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.",
"summary": "Path traversal in Grafana Loki",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.3.0"
}
]
}
],
"package": {
"name": "github.com/grafana/loki",
"ecosystem": "Go"
}
}
],
"modified": "2021-09-08T18:11:29Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"published": "2021-09-02T22:00:40Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-36156",
"type": "ADVISORY"
},
{
"url": "https://github.com/grafana/loki/pull/4020",
"type": "WEB"
},
{
"url": "https://github.com/grafana/loki/pull/4020#issue-694377133",
"type": "WEB"
},
{
"url": "https://github.com/grafana/loki",
"type": "PACKAGE"
},
{
"url": "https://github.com/grafana/loki/releases/tag/v2.3.0",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-22"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-08-03T15:15:00Z",
"github_reviewed_at": "2021-08-04T18:52:20Z"
}
}