<?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 libgit2</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2018:3519-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2018-10-26T18:28:33Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2018-10-26T18:28:33Z</InitialReleaseDate>
    <CurrentReleaseDate>2018-10-26T18:28:33Z</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 libgit2</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for libgit2 fixes the following issues:

- CVE-2018-8099: Fixed possible denial of service attack via different vectors by not being able to differentiate between these status codes (bsc#1085256).
- CVE-2018-11235: With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs 'git clone --recurse-submodules' because submodule 'names' are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with '../' in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.  (bsc#1095219)
- CVE-2018-10887: It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may have lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker could have used this flaw to leak memory addresses or cause a Denial of Service. (bsc#1100613)
- CVE-2018-10888: A missing check in git_delta_apply function in delta.c file, may lead to an out-of-bound read while reading a binary delta file. An attacker may use this flaw to cause a Denial of Service. (bsc#1100612)
- CVE-2018-15501: A remote attacker can send a crafted smart-protocol 'ng' packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS.  (bsc#1104641)

This update was imported from the SUSE:SLE-12-SP2: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>
  </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/opensuse-security-announce/2018-10/msg00078.html</URL>
      <Description>E-Mail link for openSUSE-SU-2018:3519-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Leap 42.3">
      <Branch Type="Product Name" Name="openSUSE Leap 42.3">
        <FullProductName ProductID="openSUSE Leap 42.3">openSUSE Leap 42.3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="libgit2-0.24.1-10.3.1">
      <FullProductName ProductID="libgit2-0.24.1-10.3.1">libgit2-0.24.1-10.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libgit2-24-0.24.1-10.3.1">
      <FullProductName ProductID="libgit2-24-0.24.1-10.3.1">libgit2-24-0.24.1-10.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libgit2-24-32bit-0.24.1-10.3.1">
      <FullProductName ProductID="libgit2-24-32bit-0.24.1-10.3.1">libgit2-24-32bit-0.24.1-10.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libgit2-devel-0.24.1-10.3.1">
      <FullProductName ProductID="libgit2-devel-0.24.1-10.3.1">libgit2-devel-0.24.1-10.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="libgit2-0.24.1-10.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:libgit2-0.24.1-10.3.1">libgit2-0.24.1-10.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="libgit2-24-0.24.1-10.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:libgit2-24-0.24.1-10.3.1">libgit2-24-0.24.1-10.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="libgit2-24-32bit-0.24.1-10.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:libgit2-24-32bit-0.24.1-10.3.1">libgit2-24-32bit-0.24.1-10.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="libgit2-devel-0.24.1-10.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:libgit2-devel-0.24.1-10.3.1">libgit2-devel-0.24.1-10.3.1 as a component of openSUSE Leap 42.3</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">A flaw was found in libgit2 before version 0.27.3. It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker may use this flaw to leak memory addresses or cause a Denial of Service.</Note>
    </Notes>
    <CVE>CVE-2018-10887</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:libgit2-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-32bit-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-devel-0.24.1-10.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-10/msg00078.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-10887.html</URL>
        <Description>CVE-2018-10887</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1100613</URL>
        <Description>SUSE Bug 1100613</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">A flaw was found in libgit2 before version 0.27.3. A missing check in git_delta_apply function in delta.c file, may lead to an out-of-bound read while reading a binary delta file. An attacker may use this flaw to cause a Denial of Service.</Note>
    </Notes>
    <CVE>CVE-2018-10888</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:libgit2-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-32bit-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-devel-0.24.1-10.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-10/msg00078.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-10888.html</URL>
        <Description>CVE-2018-10888</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1100612</URL>
        <Description>SUSE Bug 1100612</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">In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can occur. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs "git clone --recurse-submodules" because submodule "names" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with "../" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.</Note>
    </Notes>
    <CVE>CVE-2018-11235</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:libgit2-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-32bit-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-devel-0.24.1-10.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-10/msg00078.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-11235.html</URL>
        <Description>CVE-2018-11235</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1095219</URL>
        <Description>SUSE Bug 1095219</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">In ng_pkt in transports/smart_pkt.c in libgit2 before 0.26.6 and 0.27.x before 0.27.4, a remote attacker can send a crafted smart-protocol "ng" packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS.</Note>
    </Notes>
    <CVE>CVE-2018-15501</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:libgit2-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-32bit-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-devel-0.24.1-10.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-10/msg00078.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-15501.html</URL>
        <Description>CVE-2018-15501</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1104641</URL>
        <Description>SUSE Bug 1104641</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">Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.</Note>
    </Notes>
    <CVE>CVE-2018-8099</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:libgit2-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-24-32bit-0.24.1-10.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libgit2-devel-0.24.1-10.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>low</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-security-announce/2018-10/msg00078.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-8099.html</URL>
        <Description>CVE-2018-8099</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1085256</URL>
        <Description>SUSE Bug 1085256</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1085257</URL>
        <Description>SUSE Bug 1085257</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
