CVE-2022-39307 Grafana subject to Exposure of Sensitive Information resulting in User enumeration via forget password

Medium 6.7 Published Updated

Unauthenticated attackers can enumerate valid usernames via distinct error messages in the password reset feature, exposing sensitive user information.

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-39307?

CVE-2022-39307 is a medium-severity vulnerability in Grafana Grafana, published on 9 Nov 2022. 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. When using the forget password on the login page, a POST request is made to the `/api/user/password/sent-reset-email` URL. When the username or email does not exist, a JSON response contains a “user not found” message. This leaks information to unauthenticated users and introduces a security risk. This issue has been patched in 9.2.4 and backported to 8.5.15. There are no known workarounds.

Weakness: CWE-209, CWE-200

Which versions are affected by CVE-2022-39307?

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.15
github.com/grafana/grafana GoAll versions8.5.15
github.com/grafana/grafana GoFrom 9.0.09.2.4
github.com/grafana/grafana GoFrom 9.0.09.2.4
grafana BitnamiAll versions8.5.15, 9.2.4

Products include Grafana Grafana.

How do I fix CVE-2022-39307?

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

Is CVE-2022-39307 being exploited?

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

All Grafana Grafana vulnerabilities

Sources

Also known as BIT-grafana-2022-39307, CLSA-2025-1758135826, GHSA-3p62-42x7-gxg5, GO-2024-2844, MINI-27mr-mq94-742x, MINI-354v-vh2v-q2xw and 16 more.

Is CVE-2022-39307 in your software?

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

Check your SBOMs for free