Vulnerability Name:

CVE-2022-21702 (CCN-219281)

Assigned:2021-11-16
Published:2022-02-08
Updated:2022-09-10
Summary: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.
CVSS v3 Severity:5.4 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
4.7 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
6.5 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N)
5.7 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): Low
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): Low
Availibility (A): None
6.8 Medium (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N)
5.9 Medium (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): None
Availibility (A): None
CVSS v2 Severity:2.1 Low (CVSS v2 Vector: AV:N/AC:H/Au:S/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Authentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
5.6 Medium (CCN CVSS v2 Vector: AV:N/AC:H/Au:S/C:C/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-79
CWE-79
Vulnerability Consequences:Cross-Site Scripting
References:Source: MITRE
Type: CNA
CVE-2022-21702

Source: XF
Type: UNKNOWN
grafana-cve202221702-xss(219281)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/grafana/grafana/commit/27726868b3d7c613844b55cd209ca93645c99b85

Source: CCN
Type: Grafana GIT Repository
CVE-2022-21702: Grafana proxy XSS

Source: CONFIRM
Type: Exploit, Mitigation, Release Notes, Third Party Advisory
https://github.com/grafana/grafana/security/advisories/GHSA-xc3p-28hw-q24g

Source: MISC
Type: Release Notes, Vendor Advisory
https://grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes/

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-9dd03cab55

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-c5383675d9

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-83405f9d5b

Source: CONFIRM
Type: Third Party Advisory
https://security.netapp.com/advisory/ntap-20220303-0005/

Vulnerable Configuration:Configuration 1:
  • cpe:/a:grafana:grafana:*:*:*:*:*:*:*:* (Version >= 8.0.0 and < 8.3.5)
  • OR cpe:/a:grafana:grafana:2.0.0:beta1:*:*:*:*:*:*
  • OR cpe:/a:grafana:grafana:2.0.0:beta3:*:*:*:*:*:*
  • OR cpe:/a:grafana:grafana:*:*:*:*:*:*:*:* (Version >= 2.0.1 and < 7.5.15)

  • Configuration 2:
  • cpe:/a:netapp:e-series_performance_analyzer:*:*:*:*:*:*:*:* (Version < 3.0)

  • Configuration 3:
  • cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:36:*:*:*:*:*:*:*

  • Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • Configuration RedHat 3:
  • cpe:/a:redhat:enterprise_linux:9:*:*:*:*:*:*:*

  • Configuration RedHat 4:
  • cpe:/a:redhat:enterprise_linux:9::appstream:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:grafana:grafana:2.0.0:beta1:*:*:*:*:*:*
  • OR cpe:/a:grafana:grafana:8.3.4:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.redhat.rhsa:def:20228057
    P
    RHSA-2022:8057: grafana security, bug fix, and enhancement update (Important)
    2022-11-15
    oval:com.redhat.rhsa:def:20227519
    P
    RHSA-2022:7519: grafana security, bug fix, and enhancement update (Moderate)
    2022-11-08
    oval:org.opensuse.security:def:639
    P
    Security update for grafana (Important) (in QA)
    2022-10-06
    oval:org.opensuse.security:def:127300
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:org.opensuse.security:def:6077
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:org.opensuse.security:def:125737
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:org.opensuse.security:def:126903
    P
    Security update for SUSE Manager Client Tools (Important)
    2022-06-20
    oval:org.opensuse.security:def:102173
    P
    Security update for SUSE Manager Client Tools (Moderate)
    2022-04-25
    BACK
    grafana grafana *
    grafana grafana 2.0.0 beta1
    grafana grafana 2.0.0 beta3
    grafana grafana *
    netapp e-series performance analyzer *
    fedoraproject fedora 34
    fedoraproject fedora 35
    fedoraproject fedora 36
    grafana grafana 2.0.0 beta1
    grafana grafana 8.3.4