Vulnerability · Published May 20, 2022 · Assigned by GitHub_M
CVE-2022-29170Grafana Enterprise datasource network restrictions bypass via HTTP redirects
Medium 6.6
In plain English
A medium-severity open redirect in grafana from grafana. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Grafana is an open-source platform for monitoring and observability. In Grafana Enterprise, the Request security feature allows list allows to configure Grafana in a way so that the instance doesn’t call or only calls specific hosts. The vulnerability present starting with version 7.4.0-beta1 and prior to versions 7.5.16 and 8.5.3 allows someone to bypass these security configurations if a malicious datasource (running on an allowed host) returns an HTTP redirect to a forbidden host. The vulnerability only impacts Grafana Enterprise when the Request security allow list is used and there is a possibility to add a custom datasource to Grafana which returns HTTP redirects. In this scenario, Grafana would blindly follow the redirects and potentially give secure information to the clients. Grafana Cloud is not impacted by this vulnerability. Versions 7.5.16 and 8.5.3 contain a patch for this issue. There are currently no known workarounds.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | grafana | 8.5.3-r0 | ALPINE-CVE-2022-29170 |
| Alpine:v3.21 | grafana | 8.5.3-r0 | ALPINE-CVE-2022-29170 |
| Alpine:v3.22 | grafana | 8.5.3-r0 | ALPINE-CVE-2022-29170 |
| Alpine:v3.23 | grafana | 8.5.3-r0 | ALPINE-CVE-2022-29170 |
| Alpine:v3.24 | grafana | 8.5.3-r0 | ALPINE-CVE-2022-29170 |
Affected products (as reported)
Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:L
References
- https://github.com/grafana/grafana/security/advisories/GHSA-9rrr-6fq2-4f99 x_refsource_CONFIRM
- https://github.com/grafana/grafana/pull/49240 x_refsource_MISC
- https://github.com/grafana/grafana/releases/tag/v7.5.16 x_refsource_MISC
- https://github.com/grafana/grafana/releases/tag/v8.5.3 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220707-0005/ x_refsource_CONFIRM