CVE-2022-39229 Grafana users with email as a username can block other users from signing in

Medium 4.3 Published Updated

An attacker can block legitimate users from signing in by registering their email address as a username, causing a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-39229?

CVE-2022-39229 is a medium-severity authentication bypass vulnerability in Grafana Grafana, published on 13 Oct 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Grafana is an open source data visualization platform for metrics, logs, and traces. Versions prior to 9.1.8 and 8.5.14 allow one user to block another user's login attempt by registering someone else'e email address as a username. A Grafana user’s username and email address are unique fields, that means no other user can have the same username or email address as another user. A user can have an email address as a username. However, the login system allows users to log in with either username or email address. Since Grafana allows a user to log in with either their username or email address, this creates an usual behavior where `user_1` can register with one email address and `user_2` can register their username as `user_1`’s email address. This prevents `user_1` logging into the application since `user_1`'s password won’t match with `user_2`'s email address. Versions 9.1.8 and 8.5.14 contain a patch. There are no workarounds for this issue.

Weakness: CWE-287

Which versions are affected by CVE-2022-39229?

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.14
github.com/grafana/grafana GoAll versions8.5.14
github.com/grafana/grafana GoFrom 9.0.09.1.8
github.com/grafana/grafana GoFrom 9.0.09.1.8
grafana BitnamiAll versions8.5.14, 9.1.8

Products include Grafana Grafana.

How do I fix CVE-2022-39229?

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

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2022-39229 being exploited?

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

All Grafana Grafana vulnerabilities

Sources

Also known as BIT-grafana-2022-39229, GHSA-gj7m-853r-289r, GO-2024-2848, MINI-4434-x9wp-qf3v, MINI-733g-vrm8-5ch7, MINI-74xc-jfc6-8rfm and 16 more.

Is CVE-2022-39229 in your software?

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

Check your SBOMs for free