<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Security update for grafana</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>SUSE-SU-2022:3765-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2022-10-26T09:17:37Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2022-10-26T09:17:37Z</InitialReleaseDate>
    <CurrentReleaseDate>2022-10-26T09:17:37Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">Security update for grafana</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for grafana fixes the following issues:

  Updated to version 8.3.10 (jsc#SLE-24565, jsc#SLE-23422, jsc#SLE-23439):

  - CVE-2022-31097: Fixed XSS vulnerability in the Unified Alerting (bsc#1201535).
  - CVE-2022-31107: Fixed OAuth account takeover vulnerability (bsc#1201539).
  - CVE-2022-21702: Fixed XSS through attacker-controlled data source (bsc#1195726).
  - CVE-2022-21703: Fixed Cross Site Request Forgery (bsc#1195727).
  - CVE-2022-21713: Fixed Teams API IDOR (bsc#1195728).

  </Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">Container ses/7.1/ceph/grafana:latest-2022-3765,SUSE-2022-3765,SUSE-SLE-Module-Packagehub-Subpackages-15-SP4-2022-3765,openSUSE-SLE-15.3-2022-3765,openSUSE-SLE-15.4-2022-3765</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/update/announcement/2022/suse-su-20223765-1/</URL>
      <Description>Link for SUSE-SU-2022:3765-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://lists.suse.com/pipermail/sle-security-updates/2022-October/012701.html</URL>
      <Description>E-Mail link for SUSE-SU-2022:3765-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1195726</URL>
      <Description>SUSE Bug 1195726</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1195727</URL>
      <Description>SUSE Bug 1195727</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1195728</URL>
      <Description>SUSE Bug 1195728</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1201535</URL>
      <Description>SUSE Bug 1201535</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1201539</URL>
      <Description>SUSE Bug 1201539</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2022-21702/</URL>
      <Description>SUSE CVE CVE-2022-21702 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2022-21703/</URL>
      <Description>SUSE CVE CVE-2022-21703 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2022-21713/</URL>
      <Description>SUSE CVE CVE-2022-21713 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2022-31097/</URL>
      <Description>SUSE CVE CVE-2022-31097 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2022-31107/</URL>
      <Description>SUSE CVE CVE-2022-31107 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="Container ses/7.1/ceph/grafana:latest">
      <Branch Type="Product Name" Name="Container ses/7.1/ceph/grafana:latest">
        <FullProductName ProductID="Container ses/7.1/ceph/grafana:latest">Container ses/7.1/ceph/grafana:latest</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Module for Package Hub 15 SP4">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Module for Package Hub 15 SP4">
        <FullProductName ProductID="SUSE Linux Enterprise Module for Package Hub 15 SP4" CPE="cpe:/o:suse:packagehub:15:sp4">SUSE Linux Enterprise Module for Package Hub 15 SP4</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 15.3">
      <Branch Type="Product Name" Name="openSUSE Leap 15.3">
        <FullProductName ProductID="openSUSE Leap 15.3" CPE="cpe:/o:opensuse:leap:15.3">openSUSE Leap 15.3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 15.4">
      <Branch Type="Product Name" Name="openSUSE Leap 15.4">
        <FullProductName ProductID="openSUSE Leap 15.4" CPE="cpe:/o:opensuse:leap:15.4">openSUSE Leap 15.4</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="grafana-8.3.10-150200.3.26.1">
      <FullProductName ProductID="grafana-8.3.10-150200.3.26.1">grafana-8.3.10-150200.3.26.1</FullProductName>
    </Branch>
    <Relationship ProductReference="grafana-8.3.10-150200.3.26.1" RelationType="Default Component Of" RelatesToProductReference="Container ses/7.1/ceph/grafana:latest">
      <FullProductName ProductID="Container ses/7.1/ceph/grafana:latest:grafana-8.3.10-150200.3.26.1">grafana-8.3.10-150200.3.26.1 as a component of Container ses/7.1/ceph/grafana:latest</FullProductName>
    </Relationship>
    <Relationship ProductReference="grafana-8.3.10-150200.3.26.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Package Hub 15 SP4">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Package Hub 15 SP4:grafana-8.3.10-150200.3.26.1">grafana-8.3.10-150200.3.26.1 as a component of SUSE Linux Enterprise Module for Package Hub 15 SP4</FullProductName>
    </Relationship>
    <Relationship ProductReference="grafana-8.3.10-150200.3.26.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:grafana-8.3.10-150200.3.26.1">grafana-8.3.10-150200.3.26.1 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="grafana-8.3.10-150200.3.26.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.4">
      <FullProductName ProductID="openSUSE Leap 15.4:grafana-8.3.10-150200.3.26.1">grafana-8.3.10-150200.3.26.1 as a component of openSUSE Leap 15.4</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">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.</Note>
    </Notes>
    <CVE>CVE-2022-21702</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Container ses/7.1/ceph/grafana:latest:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Package Hub 15 SP4:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.3:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.4:grafana-8.3.10-150200.3.26.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>2.1</BaseScore>
        <Vector>AV:N/AC:H/Au:S/C:N/I:P/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2022/suse-su-20223765-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2022-21702.html</URL>
        <Description>CVE-2022-21702</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1195726</URL>
        <Description>SUSE Bug 1195726</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Grafana is an open-source platform for monitoring and observability. Affected versions are subject to a cross site request forgery vulnerability which allows attackers to elevate their privileges by mounting cross-origin attacks against authenticated high-privilege Grafana users (for example, Editors or Admins). An attacker can exploit this vulnerability for privilege escalation by tricking an authenticated user into inviting the attacker as a new user with high privileges. Users are advised to upgrade as soon as possible. There are no known workarounds for this issue.</Note>
    </Notes>
    <CVE>CVE-2022-21703</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Container ses/7.1/ceph/grafana:latest:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Package Hub 15 SP4:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.3:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.4:grafana-8.3.10-150200.3.26.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>6.8</BaseScore>
        <Vector>AV:N/AC:M/Au:N/C:P/I:P/A:P</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2022/suse-su-20223765-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2022-21703.html</URL>
        <Description>CVE-2022-21703</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1195727</URL>
        <Description>SUSE Bug 1195727</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Grafana is an open-source platform for monitoring and observability. Affected versions of Grafana expose multiple API endpoints which do not properly handle user authorization. `/teams/:teamId` will allow an authenticated attacker to view unintended data by querying for the specific team ID, `/teams/:search` will allow an authenticated attacker to search for teams and see the total number of available teams, including for those teams that the user does not have access to, and `/teams/:teamId/members` when editors_can_admin flag is enabled, an authenticated attacker can see unintended data by querying for the specific team ID. Users are advised to upgrade as soon as possible. There are no known workarounds for this issue.</Note>
    </Notes>
    <CVE>CVE-2022-21713</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Container ses/7.1/ceph/grafana:latest:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Package Hub 15 SP4:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.3:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.4:grafana-8.3.10-150200.3.26.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>3.5</BaseScore>
        <Vector>AV:N/AC:M/Au:S/C:P/I:N/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2022/suse-su-20223765-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2022-21713.html</URL>
        <Description>CVE-2022-21713</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1195728</URL>
        <Description>SUSE Bug 1195728</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="4">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Grafana is an open-source platform for monitoring and observability. Versions on the 8.x and 9.x branch prior to 9.0.3, 8.5.9, 8.4.10, and 8.3.10 are vulnerable to stored cross-site scripting via the Unified Alerting feature of Grafana. An attacker can exploit this vulnerability to escalate privilege from editor to admin by tricking an authenticated admin to click on a link. Versions 9.0.3, 8.5.9, 8.4.10, and 8.3.10 contain a patch. As a workaround, it is possible to disable alerting or use legacy alerting.</Note>
    </Notes>
    <CVE>CVE-2022-31097</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Container ses/7.1/ceph/grafana:latest:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Package Hub 15 SP4:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.3:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.4:grafana-8.3.10-150200.3.26.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2022/suse-su-20223765-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2022-31097.html</URL>
        <Description>CVE-2022-31097</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1201535</URL>
        <Description>SUSE Bug 1201535</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="5">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">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.</Note>
    </Notes>
    <CVE>CVE-2022-31107</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Container ses/7.1/ceph/grafana:latest:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Package Hub 15 SP4:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.3:grafana-8.3.10-150200.3.26.1</ProductID>
        <ProductID>openSUSE Leap 15.4:grafana-8.3.10-150200.3.26.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2022/suse-su-20223765-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2022-31107.html</URL>
        <Description>CVE-2022-31107</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1201539</URL>
        <Description>SUSE Bug 1201539</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
