Home / grafana / grafana / CVE-2022-31107
CVE-2022-31107: is it exploited, and which versions of grafana are affected and fixed?
CVE-2022-31107 is an incorrect authorization vulnerability in grafana. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: github.com/grafana/grafana from 5.3.0-beta1 before 8.3.10, github.com/grafana/grafana from 8.4.0 before 8.4.10, github.com/grafana/grafana from 8.5.0 before 8.5.9 and 1 more (GitHub advisory GHSA-mx47-6497-3fv2). Fixed in 8.3.10, 8.4.10, 8.5.9 and 9.0.3 (GitHub advisory GHSA-mx47-6497-3fv2). Severity: High (7.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:47 UTC.
What is CVE-2022-31107?
Grafana account takeover via OAuth vulnerability
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.
From the CVE record by GitHub_M, last updated January 28, 2026, 04:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| 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 |
As the CVE record by GitHub_M states it, last updated January 28, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| 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 | GHSA-mx47-6497-3fv2 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 16, 2026. Summary: Grafana account takeover via OAuth vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| grafana | grafana | from 5.3.0 before 8.3.10 | application |
| grafana | grafana | from 8.4.0 before 8.4.10 | application |
| grafana | grafana | from 8.5.0 before 8.5.9 | application |
| grafana | grafana | from 9.0.0 before 9.0.3 | application |
| netapp | e-series performance analyzer | all versions | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:44 UTC.
How severe is CVE-2022-31107?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-31107 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, January 27, 2026)
- EPSS
- 2.87% probability of exploitation activity in the next 30 days, percentile 87.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-863 Incorrect Authorization
Where are the vendor advisories and references?
- https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/ x_refsource_MISC
- https://github.com/grafana/grafana/security/advisories/GHSA-mx47-6497-3fv2 x_refsource_CONFIRM
- https://grafana.com/docs/grafana/next/release-notes/release-notes-8-5-9/ x_refsource_MISC
- https://grafana.com/docs/grafana/next/release-notes/release-notes-9-0-3/ x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220901-0010/ x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- May 18, 2022
- Published
- July 15, 2022, 12:30 UTC
- CVE record updated
- January 28, 2026, 04:55 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:44 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:47 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect grafana?
- Dec 7, 2021CVE-2021-43798 grafana: path traversal (reading or writing files outside the intended folder) exploited
- Oct 5, 2021CVE-2021-39226 grafana: authentication bypass (improper authentication) exploited
- Mar 27, 2026CVE-2026-27879 Grafana: denial of service (uncontrolled resource consumption)
- Mar 27, 2026CVE-2026-28375 Grafana: denial of service (uncontrolled resource consumption)
- Mar 27, 2026CVE-2026-27876 Grafana: code injection (remote code execution)
- Mar 27, 2026CVE-2026-27880 Grafana: out-of-bounds read
- Mar 27, 2026CVE-2026-27877 Grafana: sensitive data stored in clear text
- Feb 25, 2026CVE-2026-21725 Grafana: time-of-check time-of-use race condition
Questions about CVE-2022-31107
Is CVE-2022-31107 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 2.87% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of grafana are affected by CVE-2022-31107?
github.com/grafana/grafana from 5.3.0-beta1 before 8.3.10, github.com/grafana/grafana from 8.4.0 before 8.4.10, github.com/grafana/grafana from 8.5.0 before 8.5.9 and github.com/grafana/grafana from 9.0.0 before 9.0.3, per the GitHub advisory GHSA-mx47-6497-3fv2. The tables above give every range the sources list.
Which version fixes CVE-2022-31107?
8.3.10, 8.4.10, 8.5.9 and 9.0.3, per the GitHub advisory GHSA-mx47-6497-3fv2. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-31107?
High (7.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-31107?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.