<?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 git</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2020:0524-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2020-04-16T08:37:53Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2020-04-16T08:37:53Z</InitialReleaseDate>
    <CurrentReleaseDate>2020-04-16T08:37:53Z</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 git</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for git fixes the following issues:

- CVE-2020-5260: With a crafted URL that contains a newline in it, the credential
  helper machinery can be fooled to give credential information for a wrong host (bsc#1168930). 

This update was imported from the SUSE:SLE-15:Update update project.</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">openSUSE-2020-524</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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/FTDYLTR4TUBTNP4EFF5L2ZOAKYAB4Z2U/</URL>
      <Description>E-Mail link for openSUSE-SU-2020:0524-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/1168930</URL>
      <Description>SUSE Bug 1168930</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2020-5260/</URL>
      <Description>SUSE CVE CVE-2020-5260 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Leap 15.1">
      <Branch Type="Product Name" Name="openSUSE Leap 15.1">
        <FullProductName ProductID="openSUSE Leap 15.1" CPE="cpe:/o:opensuse:leap:15.1">openSUSE Leap 15.1</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="git-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-2.16.4-lp151.4.6.1">git-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-arch-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-arch-2.16.4-lp151.4.6.1">git-arch-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-core-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-core-2.16.4-lp151.4.6.1">git-core-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-credential-gnome-keyring-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-credential-gnome-keyring-2.16.4-lp151.4.6.1">git-credential-gnome-keyring-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-credential-libsecret-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-credential-libsecret-2.16.4-lp151.4.6.1">git-credential-libsecret-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-cvs-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-cvs-2.16.4-lp151.4.6.1">git-cvs-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-daemon-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-daemon-2.16.4-lp151.4.6.1">git-daemon-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-doc-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-doc-2.16.4-lp151.4.6.1">git-doc-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-email-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-email-2.16.4-lp151.4.6.1">git-email-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-gui-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-gui-2.16.4-lp151.4.6.1">git-gui-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-p4-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-p4-2.16.4-lp151.4.6.1">git-p4-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-svn-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-svn-2.16.4-lp151.4.6.1">git-svn-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-web-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="git-web-2.16.4-lp151.4.6.1">git-web-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="gitk-2.16.4-lp151.4.6.1">
      <FullProductName ProductID="gitk-2.16.4-lp151.4.6.1">gitk-2.16.4-lp151.4.6.1</FullProductName>
    </Branch>
    <Relationship ProductReference="git-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-2.16.4-lp151.4.6.1">git-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-arch-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-arch-2.16.4-lp151.4.6.1">git-arch-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-core-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-core-2.16.4-lp151.4.6.1">git-core-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-credential-gnome-keyring-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-credential-gnome-keyring-2.16.4-lp151.4.6.1">git-credential-gnome-keyring-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-credential-libsecret-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-credential-libsecret-2.16.4-lp151.4.6.1">git-credential-libsecret-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-cvs-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-cvs-2.16.4-lp151.4.6.1">git-cvs-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-daemon-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-daemon-2.16.4-lp151.4.6.1">git-daemon-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-doc-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-doc-2.16.4-lp151.4.6.1">git-doc-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-email-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-email-2.16.4-lp151.4.6.1">git-email-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-gui-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-gui-2.16.4-lp151.4.6.1">git-gui-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-p4-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-p4-2.16.4-lp151.4.6.1">git-p4-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-svn-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-svn-2.16.4-lp151.4.6.1">git-svn-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-web-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:git-web-2.16.4-lp151.4.6.1">git-web-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="gitk-2.16.4-lp151.4.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:gitk-2.16.4-lp151.4.6.1">gitk-2.16.4-lp151.4.6.1 as a component of openSUSE Leap 15.1</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">Affected versions of Git have a vulnerability whereby Git can be tricked into sending private credentials to a host controlled by an attacker. Git uses external "credential helper" programs to store and retrieve passwords or other credentials from secure storage provided by the operating system. Specially-crafted URLs that contain an encoded newline can inject unintended values into the credential helper protocol stream, causing the credential helper to retrieve the password for one server (e.g., good.example.com) for an HTTP request being made to another server (e.g., evil.example.com), resulting in credentials for the former being sent to the latter. There are no restrictions on the relationship between the two, meaning that an attacker can craft a URL that will present stored credentials for any host to a host of their choosing. The vulnerability can be triggered by feeding a malicious URL to git clone. However, the affected URLs look rather suspicious; the likely vector would be through systems which automatically clone URLs not visible to the user, such as Git submodules, or package systems built around Git. The problem has been patched in the versions published on April 14th, 2020, going back to v2.17.x. Anyone wishing to backport the change further can do so by applying commit 9a6bbee (the full release includes extra checks for git fsck, but that commit is sufficient to protect clients against the vulnerability). The patched versions are: 2.17.4, 2.18.3, 2.19.4, 2.20.3, 2.21.2, 2.22.3, 2.23.2, 2.24.2, 2.25.3, 2.26.1.</Note>
    </Notes>
    <CVE>CVE-2020-5260</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.1:git-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-arch-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-core-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-credential-gnome-keyring-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-credential-libsecret-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-cvs-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-daemon-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-doc-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-email-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-gui-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-p4-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-svn-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:git-web-2.16.4-lp151.4.6.1</ProductID>
        <ProductID>openSUSE Leap 15.1:gitk-2.16.4-lp151.4.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>5</BaseScore>
        <Vector>AV:N/AC:L/Au:N/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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/FTDYLTR4TUBTNP4EFF5L2ZOAKYAB4Z2U/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2020-5260.html</URL>
        <Description>CVE-2020-5260</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1168930</URL>
        <Description>SUSE Bug 1168930</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1169936</URL>
        <Description>SUSE Bug 1169936</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1170741</URL>
        <Description>SUSE Bug 1170741</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
