Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/grafana/grafana
  4. ›
  5. CVE-2022-39229

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

May 14, 2024

On September 7 as a result of an internal security audit we have discovered a security vulnerability in Grafana basic authentication, related to the usage of username and email address.

In Grafana, a 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.

In addition, a user can have an email address as a username and Grafana login allows users to sign in with either username or email address. This creates an unusual behavior, where user_1 can register with one email address and user_2 can register their username as user_1’s email address. As a result, user_1 would be prevented to sign in Grafana, since user_1 password won’t match with users_2 email address.

The CVSS score for this vulnerability is 4.3 Moderate (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).

References

  • github.com/advisories/GHSA-gj7m-853r-289r
  • github.com/grafana/grafana
  • github.com/grafana/grafana/commit/5644758f0c5ae9955a4e5480d71f9bef57fdce35
  • github.com/grafana/grafana/releases/tag/v9.1.8
  • github.com/grafana/grafana/security/advisories/GHSA-gj7m-853r-289r
  • nvd.nist.gov/vuln/detail/CVE-2022-39229

Code Behaviors & Features

Detect and mitigate CVE-2022-39229 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.5.14, all versions starting from 9.0.0 before 9.1.8

Fixed versions

  • 8.5.14
  • 9.1.8

Solution

Upgrade to versions 8.5.14, 9.1.8 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

go/github.com/grafana/grafana/CVE-2022-39229.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:01 +0000.