CVE-2022-29170 Grafana Enterprise datasource network restrictions bypass via HTTP redirects

Medium 6.6 Published Updated

Attackers can bypass network restrictions in Grafana Enterprise by using malicious datasource redirects to access forbidden hosts and potentially leak sensitive information.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-29170?

CVE-2022-29170 is a medium-severity server-side request forgery vulnerability in Grafana Grafana, published on 20 May 2022. An attacker needs administrator access to exploit it, with no action from the victim.

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.

Weakness: CWE-601

Which versions are affected by CVE-2022-29170?

1 open source package ship an affected version, including grafana. It affects 1 product.

PackageAffectedFixed in
grafana BitnamiFrom 7.4.07.5.16, 8.5.3

Products include Grafana Grafana.

How do I fix CVE-2022-29170?

Upgrade grafana to a fixed version for your release line: 7.5.16 or 8.5.3.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2022-29170 being exploited?

There is no known exploitation of CVE-2022-29170 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Grafana Grafana vulnerabilities

Sources

Also known as BIT-grafana-2022-29170, GHSA-9rrr-6fq2-4f99, OESA-2022-1711.

Is CVE-2022-29170 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free