CVE-2022-31107
published high CVSS 3.1 · 7.1Grafana account takeover via OAuth vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| grafana | — | grafana>= 5.3, < 8.3.10 · >= 8.4.0, < 8.4.10 · >= 8.5.0, < 8.5.9 · >= 9.0.0, < 9.0.3 | Affected | Not stated | GitHub_M |
| AlmaLinux | 8 | grafana | Advisory build | 7.5.11-3.el8_6 | ALSA-2022:5717 |
| Alpine Linux | edge | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Oracle Linux | 8 | grafanaaarch64 | Advisory build | 0:7.5.11-3.el8_6 | ELSA-2022-5717 |
| Red Hat Enterprise Linux | RHEL-8 | grafanaaarch64 | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| SUSE / openSUSE | SLE-15-SP4 | grafanaaarch64 | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| AlmaLinux | 9 | grafana | Advisory build | 7.5.11-5.el9_0 | ALSA-2022:5716 |
| Alpine Linux | v3.16 | grafana | Fixed | 8.5.9-r0 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.17 | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Alpine Linux | v3.18 | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Alpine Linux | v3.19 | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Alpine Linux | v3.20 | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Alpine Linux | v3.21 | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Alpine Linux | v3.22 | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Alpine Linux | v3.23 | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Alpine Linux | v3.24 | grafana | Fixed | 9.0.3-r0 | Package fix record |
| Oracle Linux | 8 | grafanax86_64 | Advisory build | 0:7.5.11-3.el8_6 | ELSA-2022-5717 |
| Oracle Linux | 9 | grafanaaarch64 | Advisory build | 0:7.5.11-5.el9_0 | ELSA-2022-5716 |
| Oracle Linux | 9 | grafanax86_64 | Advisory build | 0:7.5.11-5.el9_0 | ELSA-2022-5716 |
| Red Hat Enterprise Linux | RHEL-8 | grafanaaarch64 | Advisory build | 7.3.6-5.el8_4 | RHSA-2022:5718 |
| Red Hat Enterprise Linux | RHEL-8 | grafanaaarch64 | Advisory build | 7.5.11-3.el8_6 | RHSA-2022:5717 |
| Red Hat Enterprise Linux | RHEL-8 | grafanappc64le | Advisory build | 6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat Enterprise Linux | RHEL-8 | grafanappc64le | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafanappc64le | Advisory build | 7.3.6-5.el8_4 | RHSA-2022:5718 |
| Red Hat Enterprise Linux | RHEL-8 | grafanappc64le | Advisory build | 7.5.11-3.el8_6 | RHSA-2022:5717 |
| Red Hat Enterprise Linux | RHEL-8 | grafanas390x | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafanas390x | Advisory build | 7.3.6-5.el8_4 | RHSA-2022:5718 |
| Red Hat Enterprise Linux | RHEL-8 | grafanas390x | Advisory build | 7.5.11-3.el8_6 | RHSA-2022:5717 |
| Red Hat Enterprise Linux | RHEL-8 | grafanasrc | Advisory build | 6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat Enterprise Linux | RHEL-8 | grafanasrc | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafanasrc | Advisory build | 7.3.6-5.el8_4 | RHSA-2022:5718 |
| Red Hat Enterprise Linux | RHEL-8 | grafanasrc | Advisory build | 7.5.11-3.el8_6 | RHSA-2022:5717 |
| Red Hat Enterprise Linux | RHEL-8 | grafanax86_64 | Advisory build | 6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat Enterprise Linux | RHEL-8 | grafanax86_64 | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafanax86_64 | Advisory build | 7.3.6-5.el8_4 | RHSA-2022:5718 |
| Red Hat Enterprise Linux | RHEL-8 | grafanax86_64 | Advisory build | 7.5.11-3.el8_6 | RHSA-2022:5717 |
| Red Hat Enterprise Linux | RHEL-9 | grafanaaarch64 | Advisory build | 7.5.11-5.el9_0 | RHSA-2022:5716 |
| Red Hat Enterprise Linux | RHEL-9 | grafanappc64le | Advisory build | 7.5.11-5.el9_0 | RHSA-2022:5716 |
| Red Hat Enterprise Linux | RHEL-9 | grafanas390x | Advisory build | 7.5.11-5.el9_0 | RHSA-2022:5716 |
| Red Hat Enterprise Linux | RHEL-9 | grafanasrc | Advisory build | 7.5.11-5.el9_0 | RHSA-2022:5716 |
| Red Hat Enterprise Linux | RHEL-9 | grafanax86_64 | Advisory build | 7.5.11-5.el9_0 | RHSA-2022:5716 |
| SUSE / openSUSE | SLE-15-SP4 | grafanaaarch64 | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanaaarch64 | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanappc64le | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanappc64le | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanappc64le | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanas390x | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanas390x | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanas390x | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanax86_64 | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanax86_64 | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanax86_64 | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | SLE-15-SP5 | grafanaaarch64 | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | SLE-15-SP5 | grafanappc64le | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | SLE-15-SP5 | grafanas390x | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | SLE-15-SP5 | grafanax86_64 | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanaaarch64 | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanaaarch64 | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanappc64le | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanappc64le | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanas390x | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanas390x | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanax86_64 | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanax86_64 | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanaaarch64 | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanaaarch64 | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanaaarch64 | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanappc64le | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanappc64le | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanappc64le | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanas390x | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanas390x | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanas390x | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanax86_64 | Advisory build | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanax86_64 | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | grafanax86_64 | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | grafanaaarch64 | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | grafanappc64le | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | grafanas390x | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | grafanax86_64 | Advisory build | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grafanaaarch64 | Advisory build | 8.3.10-1.1 | OPENSUSE-SU-2024:12260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grafanappc64le | Advisory build | 8.3.10-1.1 | OPENSUSE-SU-2024:12260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grafanas390x | Advisory build | 8.3.10-1.1 | OPENSUSE-SU-2024:12260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grafanax86_64 | Advisory build | 8.3.10-1.1 | OPENSUSE-SU-2024:12260-1 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitoraarch64 | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitorppc64le | Advisory build | 6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitorppc64le | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitors390x | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitorx86_64 | Advisory build | 6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitorx86_64 | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchaarch64 | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchppc64le | Advisory build | 6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchppc64le | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchs390x | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchx86_64 | Advisory build | 6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchx86_64 | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoaarch64 | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoaarch64 | Advisory build | 7.3.6-5.el8_4 | RHSA-2022:5718 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoaarch64 | Advisory build | 7.5.11-3.el8_6 | RHSA-2022:5717 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoppc64le | Advisory build | 6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoppc64le | Advisory build | 6.3.6-5.el8_2 | RHSA-2022:5719 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
Grafana is an open-source platform for monitoring and observability. In versions 5.3 until 9.0.3, 8.5.9, 8.4.10, and 8.3.10, it is possible for a malicious user who has authorization to log into a Grafana instance via a configured OAuth IdP which provides a login name to take over the account of another user in that Grafana instance. This can occur when the malicious user is authorized to log in to Grafana via OAuth, the malicious user's external user id is not already associated with an account in Grafana, the malicious user's email address is not already associated with an account in Grafana, and the malicious user knows the Grafana username of the target user. If these conditions are met, the malicious user can set their username in the OAuth provider to that of the target user, then go through the OAuth flow to log in to Grafana. Due to the way that external and internal user accounts are linked together during login, if the conditions above are all met then the malicious user will be able to log in to the target user's Grafana account. Versions 9.0.3, 8.5.9, 8.4.10, and 8.3.10 contain a patch for this issue. As a workaround, concerned users can disable OAuth login to their Grafana instance, or ensure that all users authorized to log in via OAuth have a corresponding user account in Grafana linked to their email address.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| grafana | grafana | >= 5.3, < 8.3.10 (affected)>= 8.4.0, < 8.4.10 (affected)>= 8.5.0, < 8.5.9 (affected)>= 9.0.0, < 9.0.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-863 CWE-863: Incorrect Authorization
References
5- https://github.com/grafana/grafana/security/advisories/GHSA-mx47-6497-3fv2
- https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/
- https://grafana.com/docs/grafana/next/release-notes/release-notes-8-5-9/
- https://grafana.com/docs/grafana/next/release-notes/release-notes-9-0-3/
- https://security.netapp.com/advisory/ntap-20220901-0010/
Provider assertions
3GitHub_M · cna
Grafana account takeover via OAuth vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3b2752f69a38be6c32cc194059bc4049ea6caf895ba797059b8c995248ae8ac2
- Ingested
- 23 Sep 2026, 08:00:25 UTC
- Source record
- Official CVE record