<?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-2021:0405-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2021-03-14T14:08:26Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2021-03-14T14:08:26Z</InitialReleaseDate>
    <CurrentReleaseDate>2021-03-14T14:08:26Z</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:

- On case-insensitive filesystems, with support for symbolic links,
  if Git is configured globally to apply delay-capable clean/smudge
  filters (such as Git LFS), Git could be fooled into running
  remote code during a clone. (bsc#1183026, CVE-2021-21300)

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-2021-405</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/33ZBSRS6RUAL5LAGWR6DDONQJXFU6FIT/</URL>
      <Description>E-Mail link for openSUSE-SU-2021:0405-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/1183026</URL>
      <Description>SUSE Bug 1183026</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-21300/</URL>
      <Description>SUSE CVE CVE-2021-21300 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Leap 15.2">
      <Branch Type="Product Name" Name="openSUSE Leap 15.2">
        <FullProductName ProductID="openSUSE Leap 15.2" CPE="cpe:/o:opensuse:leap:15.2">openSUSE Leap 15.2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="git-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-2.26.2-lp152.2.6.1">git-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-arch-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-arch-2.26.2-lp152.2.6.1">git-arch-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-core-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-core-2.26.2-lp152.2.6.1">git-core-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-credential-gnome-keyring-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-credential-gnome-keyring-2.26.2-lp152.2.6.1">git-credential-gnome-keyring-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-credential-libsecret-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-credential-libsecret-2.26.2-lp152.2.6.1">git-credential-libsecret-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-cvs-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-cvs-2.26.2-lp152.2.6.1">git-cvs-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-daemon-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-daemon-2.26.2-lp152.2.6.1">git-daemon-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-doc-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-doc-2.26.2-lp152.2.6.1">git-doc-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-email-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-email-2.26.2-lp152.2.6.1">git-email-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-gui-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-gui-2.26.2-lp152.2.6.1">git-gui-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-p4-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-p4-2.26.2-lp152.2.6.1">git-p4-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-svn-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-svn-2.26.2-lp152.2.6.1">git-svn-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-web-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="git-web-2.26.2-lp152.2.6.1">git-web-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="gitk-2.26.2-lp152.2.6.1">
      <FullProductName ProductID="gitk-2.26.2-lp152.2.6.1">gitk-2.26.2-lp152.2.6.1</FullProductName>
    </Branch>
    <Relationship ProductReference="git-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-2.26.2-lp152.2.6.1">git-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-arch-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-arch-2.26.2-lp152.2.6.1">git-arch-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-core-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-core-2.26.2-lp152.2.6.1">git-core-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-credential-gnome-keyring-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-credential-gnome-keyring-2.26.2-lp152.2.6.1">git-credential-gnome-keyring-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-credential-libsecret-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-credential-libsecret-2.26.2-lp152.2.6.1">git-credential-libsecret-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-cvs-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-cvs-2.26.2-lp152.2.6.1">git-cvs-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-daemon-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-daemon-2.26.2-lp152.2.6.1">git-daemon-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-doc-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-doc-2.26.2-lp152.2.6.1">git-doc-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-email-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-email-2.26.2-lp152.2.6.1">git-email-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-gui-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-gui-2.26.2-lp152.2.6.1">git-gui-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-p4-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-p4-2.26.2-lp152.2.6.1">git-p4-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-svn-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-svn-2.26.2-lp152.2.6.1">git-svn-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-web-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:git-web-2.26.2-lp152.2.6.1">git-web-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="gitk-2.26.2-lp152.2.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:gitk-2.26.2-lp152.2.6.1">gitk-2.26.2-lp152.2.6.1 as a component of openSUSE Leap 15.2</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">Git is an open-source distributed revision control system. In affected versions of Git a specially crafted repository that contains symbolic links as well as files using a clean/smudge filter such as Git LFS, may cause just-checked out script to be executed while cloning onto a case-insensitive file system such as NTFS, HFS+ or APFS (i.e. the default file systems on Windows and macOS). Note that clean/smudge filters have to be configured for that. Git for Windows configures Git LFS by default, and is therefore vulnerable. The problem has been patched in the versions published on Tuesday, March 9th, 2021. As a workaound, if symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. Likewise, if no clean/smudge filters such as Git LFS are configured globally (i.e. _before_ cloning), the attack is foiled. As always, it is best to avoid cloning repositories from untrusted sources. The earliest impacted version is 2.14.2. The fix versions are: 2.30.1, 2.29.3, 2.28.1, 2.27.1, 2.26.3, 2.25.5, 2.24.4, 2.23.4, 2.22.5, 2.21.4, 2.20.5, 2.19.6, 2.18.5, 2.17.62.17.6.</Note>
    </Notes>
    <CVE>CVE-2021-21300</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.2:git-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-arch-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-core-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-credential-gnome-keyring-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-credential-libsecret-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-cvs-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-daemon-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-doc-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-email-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-gui-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-p4-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-svn-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:git-web-2.26.2-lp152.2.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:gitk-2.26.2-lp152.2.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>5.1</BaseScore>
        <Vector>AV:N/AC:H/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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/33ZBSRS6RUAL5LAGWR6DDONQJXFU6FIT/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-21300.html</URL>
        <Description>CVE-2021-21300</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1183026</URL>
        <Description>SUSE Bug 1183026</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
