<?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 python</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:1415-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2018-05-23T19:46:24Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2018-05-23T19:46:24Z</InitialReleaseDate>
    <CurrentReleaseDate>2018-05-23T19:46:24Z</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 python</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for python fixes the following issues:

Security issues fixed:

- CVE-2017-1000158: Fixed integer overflows in PyString_DecodeEscape that could have resulted in
  heap-based buffer overflow attacks and possible arbitrary code execution (bsc#1068664).
- CVE-2018-1000030: Fixed crash inside the Python interpreter when multiple threads used the same
  I/O stream concurrently (bsc#1079300).

This update was imported from the SUSE:SLE-12-SP1: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-05/msg00098.html</URL>
      <Description>E-Mail link for openSUSE-SU-2018:1415-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="libpython2_7-1_0-2.7.13-27.3.1">
      <FullProductName ProductID="libpython2_7-1_0-2.7.13-27.3.1">libpython2_7-1_0-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libpython2_7-1_0-32bit-2.7.13-27.3.1">
      <FullProductName ProductID="libpython2_7-1_0-32bit-2.7.13-27.3.1">libpython2_7-1_0-32bit-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-2.7.13-27.3.1">
      <FullProductName ProductID="python-2.7.13-27.3.1">python-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-32bit-2.7.13-27.3.1">
      <FullProductName ProductID="python-32bit-2.7.13-27.3.1">python-32bit-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-base-2.7.13-27.3.1">
      <FullProductName ProductID="python-base-2.7.13-27.3.1">python-base-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-base-32bit-2.7.13-27.3.1">
      <FullProductName ProductID="python-base-32bit-2.7.13-27.3.1">python-base-32bit-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-curses-2.7.13-27.3.1">
      <FullProductName ProductID="python-curses-2.7.13-27.3.1">python-curses-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-demo-2.7.13-27.3.1">
      <FullProductName ProductID="python-demo-2.7.13-27.3.1">python-demo-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-devel-2.7.13-27.3.1">
      <FullProductName ProductID="python-devel-2.7.13-27.3.1">python-devel-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-doc-2.7.13-27.3.1">
      <FullProductName ProductID="python-doc-2.7.13-27.3.1">python-doc-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-doc-pdf-2.7.13-27.3.1">
      <FullProductName ProductID="python-doc-pdf-2.7.13-27.3.1">python-doc-pdf-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-gdbm-2.7.13-27.3.1">
      <FullProductName ProductID="python-gdbm-2.7.13-27.3.1">python-gdbm-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-idle-2.7.13-27.3.1">
      <FullProductName ProductID="python-idle-2.7.13-27.3.1">python-idle-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-tk-2.7.13-27.3.1">
      <FullProductName ProductID="python-tk-2.7.13-27.3.1">python-tk-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-xml-2.7.13-27.3.1">
      <FullProductName ProductID="python-xml-2.7.13-27.3.1">python-xml-2.7.13-27.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="libpython2_7-1_0-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:libpython2_7-1_0-2.7.13-27.3.1">libpython2_7-1_0-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="libpython2_7-1_0-32bit-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:libpython2_7-1_0-32bit-2.7.13-27.3.1">libpython2_7-1_0-32bit-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-2.7.13-27.3.1">python-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-32bit-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-32bit-2.7.13-27.3.1">python-32bit-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-base-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-base-2.7.13-27.3.1">python-base-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-base-32bit-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-base-32bit-2.7.13-27.3.1">python-base-32bit-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-curses-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-curses-2.7.13-27.3.1">python-curses-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-demo-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-demo-2.7.13-27.3.1">python-demo-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-devel-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-devel-2.7.13-27.3.1">python-devel-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-doc-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-doc-2.7.13-27.3.1">python-doc-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-doc-pdf-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-doc-pdf-2.7.13-27.3.1">python-doc-pdf-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-gdbm-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-gdbm-2.7.13-27.3.1">python-gdbm-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-idle-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-idle-2.7.13-27.3.1">python-idle-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-tk-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-tk-2.7.13-27.3.1">python-tk-2.7.13-27.3.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-xml-2.7.13-27.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-xml-2.7.13-27.3.1">python-xml-2.7.13-27.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">CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyString_DecodeEscape function in stringobject.c, resulting in heap-based buffer overflow (and possible arbitrary code execution)</Note>
    </Notes>
    <CVE>CVE-2017-1000158</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:libpython2_7-1_0-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libpython2_7-1_0-32bit-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-32bit-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-base-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-base-32bit-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-curses-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-demo-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-devel-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-doc-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-doc-pdf-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-gdbm-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-idle-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-tk-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-xml-2.7.13-27.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-05/msg00098.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2017-1000158.html</URL>
        <Description>CVE-2017-1000158</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1068664</URL>
        <Description>SUSE Bug 1068664</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">Python 2.7.14 is vulnerable to a Heap-Buffer-Overflow as well as a Heap-Use-After-Free. Python versions prior to 2.7.14 may also be vulnerable and it appears that Python 2.7.17 and prior may also be vulnerable however this has not been confirmed. The vulnerability lies when multiply threads are handling large amounts of data. In both cases there is essentially a race condition that occurs. For the Heap-Buffer-Overflow, Thread 2 is creating the size for a buffer, but Thread1 is already writing to the buffer without knowing how much to write. So when a large amount of data is being processed, it is very easy to cause memory corruption using a Heap-Buffer-Overflow. As for the Use-After-Free, Thread3-&gt;Malloc-&gt;Thread1-&gt;Free's-&gt;Thread2-Re-uses-Free'd Memory. The PSRT has stated that this is not a security vulnerability due to the fact that the attacker must be able to run code, however in some situations, such as function as a service, this vulnerability can potentially be used by an attacker to violate a trust boundary, as such the DWF feels this issue deserves a CVE.</Note>
    </Notes>
    <CVE>CVE-2018-1000030</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.3:libpython2_7-1_0-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libpython2_7-1_0-32bit-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-32bit-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-base-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-base-32bit-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-curses-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-demo-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-devel-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-doc-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-doc-pdf-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-gdbm-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-idle-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-tk-2.7.13-27.3.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-xml-2.7.13-27.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-05/msg00098.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-1000030.html</URL>
        <Description>CVE-2018-1000030</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1079300</URL>
        <Description>SUSE Bug 1079300</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
