CVE-2022-31107 in Grafana and 1 more product
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...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Grafana | Grafana | ≥ 5.3.0, < 8.3.10 ≥ 8.4.0, < 8.4.10 ≥ 8.5.0, < 8.5.9 ≥ 9.0.0, < 9.0.3 |
| Netapp | E-Series Performance Analyzer | No version listed by the source |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-31107 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-067148-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-07-15 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-863: Incorrect Authorization
Software performs an authorization check incorrectly, allowing access beyond intended privileges.
Analysis AI-written, not human-reviewed
A vulnerability in Grafana versions 5.3 until 9.0.3, 8.5.9, 8.4.10, and 8.3 allows a malicious user with OAuth IdP login to take over another user's account.
The attack occurs when a malicious user, authorized to log in via a configured OAuth Identity Provider (IdP) that provides a login name, can exploit the vulnerability to assume the identity of another user within the Grafana instance.
Questions
What is CVE-2022-31107?
A vulnerability in Grafana versions 5.3 until 9.0.3, 8.5.9, 8.4.10, and 8.3 allows a malicious user with OAuth IdP login to take over another user's account.
What is the CVSS score for CVE-2022-31107?
CVE-2022-31107 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.4%.
Is CVE-2022-31107 actively exploited?
No confirmed active exploitation of CVE-2022-31107 as of 2026-09-25.
How do I remediate CVE-2022-31107?
Priority: HIGH. Advisory: https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/
What systems are affected by CVE-2022-31107?
CVE-2022-31107 affects Grafana Grafana; Netapp E-Series Performance Analyzer.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Grafana","product":"Grafana","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.