GHSA-grj5-8x6q-hc9q

Suggest an improvement
Source
https://github.com/advisories/GHSA-grj5-8x6q-hc9q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-grj5-8x6q-hc9q/GHSA-grj5-8x6q-hc9q.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-grj5-8x6q-hc9q
Aliases
Related
Published
2021-09-02T22:00:40Z
Modified
2023-11-01T04:55:44.051664Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2021-08-03T15:15:00Z",
    "github_reviewed_at": "2021-08-04T18:52:20Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Go / github.com/grafana/loki

Package

Name
github.com/grafana/loki
View open source insights on deps.dev
Purl
pkg:golang/github.com/grafana/loki

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.0