CVE-2022-39307 Grafana subject to Exposure of Sensitive Information resulting in User enumeration via forget password
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.
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/grafana/grafana Go | All versions | None |
github.com/grafana/grafana Go | All versions | 8.5.15 |
github.com/grafana/grafana Go | All versions | 8.5.15 |
github.com/grafana/grafana Go | From 9.0.0 | 9.2.4 |
github.com/grafana/grafana Go | From 9.0.0 | 9.2.4 |
grafana Bitnami | All versions | 8.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.
Other vulnerabilities in Grafana Grafana
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.