CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (7.5). EPSS 2.9% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/grafana/grafana 8.3.10, 8.4.10, 8.5.9.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hgithub.com/grafana/grafana (Go): fixed in 8.3.10, 8.4.10, 8.5.9, 9.0.3Explain CVE-2022-31107 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31107?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31107?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31107 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| grafana:grafana | from 5.3.0 before 8.3.10 |
| grafana:grafana | from 8.4.0 before 8.4.10 |
| grafana:grafana | from 8.5.0 before 8.5.9 |
| grafana:grafana | from 9.0.0 before 9.0.3 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-mx47-6497-3fv2 | Go | github.com/grafana/grafana | >=5.3.0-beta1 <8.3.10 | 8.3.10 |
| GHSA-mx47-6497-3fv2 | Go | github.com/grafana/grafana | >=8.4.0 <8.4.10 | 8.4.10 |
| GHSA-mx47-6497-3fv2 | Go | github.com/grafana/grafana | >=8.5.0 <8.5.9 | 8.5.9 |
| GHSA-mx47-6497-3fv2 | Go | github.com/grafana/grafana | >=9.0.0 <9.0.3 | 9.0.3 |
| GO-2024-2852 | Go | github.com/grafana/grafana | all versions | no fix published |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Ubuntu | 16.04:LTS | grafana | no fix listed | UBUNTU-CVE-2022-31107 |
| Red Hat | enterprise_linux:8::appstream | grafana, grafana-debuginfo | 0:7.5.11-3.el8_6 | RHSA-2022:5717 |
| Red Hat | enterprise_linux:9::appstream | grafana, grafana-debuginfo | 0:7.5.11-5.el9_0 | RHSA-2022:5716 |
| Red Hat | rhel_e4s:8.1::appstream | grafana, grafana-loki, grafana-mssql and 11 more | 0:6.2.2-9.el8_1 | RHSA-2022:5720 |
| Red Hat | rhel_eus:8.2::appstream | grafana, grafana-loki, grafana-mssql and 11 more | 0:6.3.6-5.el8_2 | RHSA-2022:5719 |
| Red Hat | rhel_eus:8.4::appstream | grafana, grafana-debuginfo | 0:7.3.6-5.el8_4 | RHSA-2022:5718 |
| SUSE | Enterprise Storage 6 | grafana | 8.5.13-150100.3.12.1 | SUSE-SU-2022:3676-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 more | bind | 9.16.6-150000.12.65.1 | SUSE-SU-2023:2578-1 |
| SUSE | Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 more | golang-github-prometheus-node_exporter | 1.3.0-150000.3.18.1 | SUSE-SU-2022:3751-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP4 | grafana | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP4 | grafana | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP4, Linux Enterprise Module for Package Hub 15 SP5 | grafana | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE | Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5 and 5 more | golang-github-prometheus-node_exporter | 1.3.0-1.21.1 | SUSE-SU-2022:3747-1 |
| SUSE | Manager Client Tools 12 | golang-github-boynux-squid_exporter | 1.6-1.9.1 | SUSE-SU-2022:4439-1 |
| SUSE | Manager Client Tools 12 | golang-github-lusitaniae-apache_exporter | 0.11.0-1.13.1 | SUSE-SU-2022:3747-1 |
| SUSE | Manager Client Tools 12 | golang-github-prometheus-alertmanager | 0.23.0-1.15.2 | SUSE-SU-2022:3747-1 |
| SUSE | Manager Client Tools 12 | grafana | 8.3.10-1.33.2 | SUSE-SU-2022:3747-1 |
| SUSE | Manager Client Tools 12 | grafana | 8.5.13-1.36.2 | SUSE-SU-2022:4439-1 |
| 71 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.3, Leap 15.4 | dracut-saltboot | 0.1.1661440542.6cbe0da-150000.1.38.1 | SUSE-SU-2022:3751-1 |
| openSUSE | Leap 15.3, Leap 15.4 | dracut-saltboot | 0.1.1665997480.587fa10-150000.1.41.1 | SUSE-SU-2022:4437-1 |
| openSUSE | Leap 15.3, Leap 15.4 | golang-github-boynux-squid_exporter | 1.6-150000.1.9.1 | SUSE-SU-2022:4437-1 |
| openSUSE | Leap 15.3, Leap 15.4 | golang-github-lusitaniae-apache_exporter | 0.11.0-150000.1.12.1 | SUSE-SU-2022:3751-1 |
| openSUSE | Leap 15.3, Leap 15.4 | golang-github-prometheus-promu | 0.13.0-150000.3.9.1 | SUSE-SU-2022:4437-1 |
| openSUSE | Leap 15.3, Leap 15.4 | grafana | 8.3.10-150200.3.26.1 | SUSE-SU-2022:3765-1 |
| openSUSE | Leap 15.3, Leap 15.4 | grafana | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| openSUSE | Leap 15.3, Leap 15.4 | spacecmd | 4.3.15-150000.3.86.1 | SUSE-SU-2022:3751-1 |
| openSUSE | Leap 15.3, Leap 15.4 | spacecmd | 4.3.16-150000.3.89.1 | SUSE-SU-2022:4437-1 |
| openSUSE | Leap 15.4 | bind | 9.16.6-150000.12.65.1 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.4 | prometheus-blackbox_exporter | 0.19.0-150000.1.14.3 | SUSE-SU-2022:4437-1 |
| openSUSE | Leap 15.4 | wire | 0.5.0-150000.1.9.3 | SUSE-SU-2022:4437-1 |
| 5 more for openSUSE in the JSON and on openSUSE's page. | ||||
| AlmaLinux | 8 | grafana | 7.5.11-3.el8_6 | ALSA-2022:5717 |
| AlmaLinux | 9 | grafana | 7.5.11-5.el9_0 | ALSA-2022:5716 |
| Rocky Linux | 8 | grafana | 0:7.5.11-3.el8_6 | RLSA-2022:5717 |
| Rocky Linux | 9 | grafana | 0:7.5.11-5.el9_0 | RLSA-2022:5716 |
| Alpine | v3.16 | grafana | 8.5.9-r0 | ALPINE-CVE-2022-31107 |
| Alpine | v3.17, v3.18, v3.19 and 5 more | grafana | 9.0.3-r0 | ALPINE-CVE-2022-31107 |
From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
As a workaround, it is possible to disable any OAuth login or ensure that all users authorized to log in via OAuth have a corresponding user account in Grafana linked to their email address.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ceph Storage 6.1 | rhceph/rhceph-6-dashboard-rhel9:6-75 | Fixed 2023-06-15 | RHSA-2023:3642 |
| Red Hat Enterprise Linux 8 | grafana-0:7.5.11-3.el8_6 | Fixed 2022-07-26 | RHSA-2022:5717 |
| Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | grafana-0:6.2.2-9.el8_1 | Fixed 2022-07-26 | RHSA-2022:5720 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | grafana-0:6.3.6-5.el8_2 | Fixed 2022-07-26 | RHSA-2022:5719 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | grafana-0:7.3.6-5.el8_4 | Fixed 2022-07-26 | RHSA-2022:5718 |
| Red Hat Enterprise Linux 9 | grafana-0:7.5.11-5.el9_0 | Fixed 2022-07-26 | RHSA-2022:5716 |
| OpenShift Service Mesh 2.0 | servicemesh-grafana | Affected | |
| OpenShift Service Mesh 2.1 | servicemesh-grafana | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-grafana-rhel8 | Not affected | |
| Red Hat build of Quarkus | grafana | Not affected | |
| Red Hat Ceph Storage 3 | grafana | Affected | |
| Red Hat Ceph Storage 4 | rhceph/rhceph-4-dashboard-rhel8 | Affected | |
| Red Hat Ceph Storage 5 | rhceph/rhceph-5-dashboard-rhel8 | Affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-grafana | Not affected | |
| Red Hat Storage 3 | grafana | Affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-31107.