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

Security issues fixed:

- CVE-2017-15098: Fix crash due to rowtype mismatch in json{b}_populate_recordset() (bsc#1067844).
- CVE-2017-12172: Start scripts permit database administrator to modify root-owned files. This issue did not affect SUSE (bsc#1062538).

Bug fixes:

- Update to version 9.4.15
  * https://www.postgresql.org/docs/9.4/static/release-9-4-15.html
  * https://www.postgresql.org/docs/9.4/static/release-9-4-14.html
</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">SUSE-SLE-DESKTOP-12-SP2-2018-63,SUSE-SLE-RPI-12-SP2-2018-63,SUSE-SLE-SDK-12-SP2-2018-63,SUSE-SLE-SERVER-12-SP2-2018-63</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/2018/suse-su-20180081-1/</URL>
      <Description>Link for SUSE-SU-2018:0081-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://lists.suse.com/pipermail/sle-security-updates/2018-January/003597.html</URL>
      <Description>E-Mail link for SUSE-SU-2018:0081-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/1062538</URL>
      <Description>SUSE Bug 1062538</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1067844</URL>
      <Description>SUSE Bug 1067844</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2017-12172/</URL>
      <Description>SUSE CVE CVE-2017-12172 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2017-15098/</URL>
      <Description>SUSE CVE CVE-2017-15098 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Desktop 12 SP2">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Desktop 12 SP2">
        <FullProductName ProductID="SUSE Linux Enterprise Desktop 12 SP2" CPE="cpe:/o:suse:sled:12:sp2">SUSE Linux Enterprise Desktop 12 SP2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server 12 SP2">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Server 12 SP2">
        <FullProductName ProductID="SUSE Linux Enterprise Server 12 SP2" CPE="cpe:/o:suse:sles:12:sp2">SUSE Linux Enterprise Server 12 SP2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2">
        <FullProductName ProductID="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2" CPE="cpe:/o:suse:sles:12:sp2">SUSE Linux Enterprise Server for Raspberry Pi 12 SP2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server for SAP Applications 12 SP2">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Server for SAP Applications 12 SP2">
        <FullProductName ProductID="SUSE Linux Enterprise Server for SAP Applications 12 SP2" CPE="cpe:/o:suse:sles_sap:12:sp2">SUSE Linux Enterprise Server for SAP Applications 12 SP2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Software Development Kit 12 SP2">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Software Development Kit 12 SP2">
        <FullProductName ProductID="SUSE Linux Enterprise Software Development Kit 12 SP2" CPE="cpe:/o:suse:sle-sdk:12:sp2">SUSE Linux Enterprise Software Development Kit 12 SP2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="postgresql94-9.4.15-21.13.1">
      <FullProductName ProductID="postgresql94-9.4.15-21.13.1">postgresql94-9.4.15-21.13.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql94-contrib-9.4.15-21.13.1">
      <FullProductName ProductID="postgresql94-contrib-9.4.15-21.13.1">postgresql94-contrib-9.4.15-21.13.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql94-docs-9.4.15-21.13.1">
      <FullProductName ProductID="postgresql94-docs-9.4.15-21.13.1">postgresql94-docs-9.4.15-21.13.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql94-server-9.4.15-21.13.1">
      <FullProductName ProductID="postgresql94-server-9.4.15-21.13.1">postgresql94-server-9.4.15-21.13.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql94-devel-9.4.15-21.13.1">
      <FullProductName ProductID="postgresql94-devel-9.4.15-21.13.1">postgresql94-devel-9.4.15-21.13.1</FullProductName>
    </Branch>
    <Relationship ProductReference="postgresql94-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Desktop 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Desktop 12 SP2:postgresql94-9.4.15-21.13.1">postgresql94-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Desktop 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server 12 SP2:postgresql94-9.4.15-21.13.1">postgresql94-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-contrib-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server 12 SP2:postgresql94-contrib-9.4.15-21.13.1">postgresql94-contrib-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-docs-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server 12 SP2:postgresql94-docs-9.4.15-21.13.1">postgresql94-docs-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-server-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server 12 SP2:postgresql94-server-9.4.15-21.13.1">postgresql94-server-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-9.4.15-21.13.1">postgresql94-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server for Raspberry Pi 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-contrib-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-contrib-9.4.15-21.13.1">postgresql94-contrib-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server for Raspberry Pi 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-docs-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-docs-9.4.15-21.13.1">postgresql94-docs-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server for Raspberry Pi 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-server-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-server-9.4.15-21.13.1">postgresql94-server-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server for Raspberry Pi 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for SAP Applications 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-9.4.15-21.13.1">postgresql94-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server for SAP Applications 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-contrib-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for SAP Applications 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-contrib-9.4.15-21.13.1">postgresql94-contrib-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server for SAP Applications 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-docs-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for SAP Applications 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-docs-9.4.15-21.13.1">postgresql94-docs-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server for SAP Applications 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-server-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for SAP Applications 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-server-9.4.15-21.13.1">postgresql94-server-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Server for SAP Applications 12 SP2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql94-devel-9.4.15-21.13.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Software Development Kit 12 SP2">
      <FullProductName ProductID="SUSE Linux Enterprise Software Development Kit 12 SP2:postgresql94-devel-9.4.15-21.13.1">postgresql94-devel-9.4.15-21.13.1 as a component of SUSE Linux Enterprise Software Development Kit 12 SP2</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">PostgreSQL 10.x before 10.1, 9.6.x before 9.6.6, 9.5.x before 9.5.10, 9.4.x before 9.4.15, 9.3.x before 9.3.20, and 9.2.x before 9.2.24 runs under a non-root operating system account, and database superusers have effective ability to run arbitrary code under that system account. PostgreSQL provides a script for starting the database server during system boot. Packages of PostgreSQL for many operating systems provide their own, packager-authored startup implementations. Several implementations use a log file name that the database superuser can replace with a symbolic link. As root, they open(), chmod() and/or chown() this log file name. This often suffices for the database superuser to escalate to root privileges when root starts the server.</Note>
    </Notes>
    <CVE>CVE-2017-12172</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Linux Enterprise Desktop 12 SP2:postgresql94-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 12 SP2:postgresql94-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 12 SP2:postgresql94-contrib-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 12 SP2:postgresql94-docs-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 12 SP2:postgresql94-server-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-contrib-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-docs-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-server-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-contrib-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-docs-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-server-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Software Development Kit 12 SP2:postgresql94-devel-9.4.15-21.13.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>6</BaseScore>
        <Vector>AV:L/AC:H/Au:S/C:C/I:C/A:C</Vector>
      </ScoreSet>
      <ScoreSet>
        <BaseScore>7.2</BaseScore>
        <Vector>AV:L/AC:L/Au:N/C:C/I:C/A:C</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/2018/suse-su-20180081-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2017-12172.html</URL>
        <Description>CVE-2017-12172</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1062538</URL>
        <Description>SUSE Bug 1062538</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1062722</URL>
        <Description>SUSE Bug 1062722</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1185814</URL>
        <Description>SUSE Bug 1185814</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">Invalid json_populate_recordset or jsonb_populate_recordset function calls in PostgreSQL 10.x before 10.1, 9.6.x before 9.6.6, 9.5.x before 9.5.10, 9.4.x before 9.4.15, and 9.3.x before 9.3.20 can crash the server or disclose a few bytes of server memory.</Note>
    </Notes>
    <CVE>CVE-2017-15098</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Linux Enterprise Desktop 12 SP2:postgresql94-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 12 SP2:postgresql94-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 12 SP2:postgresql94-contrib-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 12 SP2:postgresql94-docs-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 12 SP2:postgresql94-server-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-contrib-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-docs-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for Raspberry Pi 12 SP2:postgresql94-server-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-contrib-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-docs-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 12 SP2:postgresql94-server-9.4.15-21.13.1</ProductID>
        <ProductID>SUSE Linux Enterprise Software Development Kit 12 SP2:postgresql94-devel-9.4.15-21.13.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>6.4</BaseScore>
        <Vector>AV:N/AC:L/Au:N/C:P/I:N/A:P</Vector>
      </ScoreSet>
      <ScoreSet>
        <BaseScore>5.5</BaseScore>
        <Vector>AV:N/AC:L/Au:S/C:P/I:N/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/2018/suse-su-20180081-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2017-15098.html</URL>
        <Description>CVE-2017-15098</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1067844</URL>
        <Description>SUSE Bug 1067844</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1185814</URL>
        <Description>SUSE Bug 1185814</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
