CVE-2022-39324 Grafana vulnerable to spoofing originalUrl of snapshots

Medium 6.7 Published Updated

Attackers can spoof snapshot URLs to redirect users to malicious sites, bypassing trust in the original dashboard link.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-39324?

CVE-2022-39324 is a medium-severity vulnerability in Grafana Grafana, published on 27 Jan 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Grafana is an open-source platform for monitoring and observability. Prior to versions 8.5.16 and 9.2.8, malicious user can create a snapshot and arbitrarily choose the `originalUrl` parameter by editing the query, thanks to a web proxy. When another user opens the URL of the snapshot, they will be presented with the regular web interface delivered by the trusted Grafana server. The `Open original dashboard` button no longer points to the to the real original dashboard but to the attacker’s injected URL. This issue is fixed in versions 8.5.16 and 9.2.8.

Weakness: CWE-79

Which versions are affected by CVE-2022-39324?

6 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 1 product.

PackageAffectedFixed in
github.com/grafana/grafana GoAll versionsNone
github.com/grafana/grafana GoAll versions8.5.16
github.com/grafana/grafana GoAll versions8.5.16
github.com/grafana/grafana GoFrom 9.0.09.2.8
github.com/grafana/grafana GoFrom 9.0.09.2.8
grafana BitnamiAll versions8.5.16, 9.2.8

Products include Grafana Grafana.

How do I fix CVE-2022-39324?

Upgrade github.com/grafana/grafana to a fixed version for your release line: 8.5.16 or 9.2.8.

Is CVE-2022-39324 being exploited?

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

All Grafana Grafana vulnerabilities

Sources

Also known as BIT-grafana-2022-39324, CLSA-2026-1779532464, GHSA-4724-7jwc-3fpw, GO-2024-2867, MINI-28p9-hg22-pvc8, MINI-393p-653w-52cr and 16 more.

Is CVE-2022-39324 in your software?

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

Check your SBOMs for free