CVE-2022-21702
Cross site scripting in Grafana proxy
CVE-2022-21702 is an XSS in Grafana (CVSS 6.5, Medium).
No known exploitation. EPSS puts it in the 72nd percentile. Fixed versions are out.
No public exploit knownFix5 products2 fixed builds listed below
e.g. OID 1.3.6.1.4.1.25623.1.0.147615
What to do
Find your product and version, then upgrade to the build on the right.
- GrafanaAffected: >= 2.0.0-beta1, < 7.5.15Upgrade to: not statedAffected: >= 8.0.0, < 8.3.5Upgrade to: not statedStated by: CVE record
- Go github.com/grafana/grafanaAffected: ≥ 2.0.0-beta1, < 7.5.15Upgrade to: 7.5.15Stated by: GitHub advisory
- Netapp E-series Performance AnalyzerAffected: < 3.0Upgrade to: 3.0Stated by: NVD
- Red Hat Inc. Red Hat Enterprise LinuxAffected: 8Upgrade to: not statedStated by: BDU
- Fedora Project FedoraAffected: 34Upgrade to: not statedStated by: BDU
Versions as the sources state them. 4 more products have version data. Full version matrix after sign-in
What it is
From the CVE record
Grafana is an open-source platform for monitoring and observability. In affected versions an attacker could serve HTML content thru the Grafana datasource or plugin proxy and trick a user to visit this HTML page using a specially crafted link and execute a Cross-site Scripting (XSS) attack. The attacker could either compromise an existing datasource for a specific Grafana instance or either set up its own public service and instruct anyone to set it up in their Grafana instance. To be impacted, all of the following must be applicable. For the data source proxy: A Grafana HTTP-based datasource configured with Server as Access Mode and a URL set, the attacker has to be in control of the HTTP server serving the URL of above datasource, and a specially crafted link pointing at the attacker controlled data source must be clicked on by an authenticated user. For the plugin proxy: A Grafana HTTP-based app plugin configured and enabled with a URL set, the attacker has to be in control of the HTTP server serving the URL of above app, and a specially crafted link pointing at the attacker controlled plugin must be clocked on by an authenticated user. For the backend plugin resource: An attacker must be able to navigate an authenticated user to a compromised plugin through a crafted link. Users are advised to update to a patched version. There are no known workarounds for this vulnerability.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
1.4% chance of exploitation activity in the next 30 days, which ranks it in the 72nd percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
7 events over 1598 days, from the signal feeds we watch.
- OpenVAS check added
- Patch availableworkaround available, record updated
- Publishedweakness classified, att&ck mapped
Affected products
- Red Hat Enterprise LinuxOperating Systems / linux-distro
- Openshift Service MeshOperating Systems / linux-distro
- Red Hat Advanced Cluster Management for KubernetesOperating Systems / linux-distro
- Red Hat OpenShift GitOpsOperating Systems / linux-distro
- Red Hat OpenShift Container PlatformOperating Systems / linux-distro
And 3 more affected products. See all after sign-in
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
Scored 6.5 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
- Privileges Required LowRequires basic user-level privileges
- User Interaction RequiredA user must click a link, open a file, or perform some action
Scope
- Scope ChangedThe exploit can affect other components (e.g. sandbox escape, host compromise from VM)
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity LowData modification is possible but limited in scope or consequence
- Availability NoneNo availability impact
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- github.com/grafana/grafana/security/advisories/GHSA-xc3p-28hw-q24g
- github.com/grafana/grafana/commit/27726868b3d7c613844b55cd209ca93645c99b85
- grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes/
And 19 more references. See all after sign-in
Questions about CVE-2022-21702
- Is CVE-2022-21702 being exploited?
- No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 1.4%.
- Which versions are affected by CVE-2022-21702?
- Grafana: >= 2.0.0-beta1, < 7.5.15; >= 8.0.0, < 8.3.5. Github.com/grafana/grafana: ≥ 2.0.0-beta1, < 7.5.15. E-series Performance Analyzer: < 3.0. 6 more products are listed in the record.
- How do I fix or mitigate CVE-2022-21702?
- Upgrade to a fixed build for your product branch: 7.5.15, 3.0. The advisory is on github.com.
Last updated
Related articles
All articlesWatch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Grafana, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI