<?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 postgresql, postgresql13</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:0337-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2021-02-24T17:05:14Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2021-02-24T17:05:14Z</InitialReleaseDate>
    <CurrentReleaseDate>2021-02-24T17:05:14Z</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 postgresql, postgresql13</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for postgresql, postgresql13 fixes the following issues:

This update ships postgresql13.

Upgrade to version 13.1:

* CVE-2020-25695, bsc#1178666: Block DECLARE CURSOR ... WITH HOLD
  and firing of deferred triggers within index expressions and
  materialized view queries.
* CVE-2020-25694, bsc#1178667:
  a) Fix usage of complex connection-string parameters in pg_dump,
  pg_restore, clusterdb, reindexdb, and vacuumdb.
  b) When psql's \connect command re-uses connection parameters,
  ensure that all non-overridden parameters from a previous
  connection string are re-used.
* CVE-2020-25696, bsc#1178668: Prevent psql's \gset command from
  modifying specially-treated variables.
* Fix recently-added timetz test case so it works when the USA
  is not observing daylight savings time.
  (obsoletes postgresql-timetz.patch)
* https://www.postgresql.org/about/news/2111/
* https://www.postgresql.org/docs/13/release-13-1.html

Initial packaging of PostgreSQL 13:

* https://www.postgresql.org/about/news/2077/
* https://www.postgresql.org/docs/13/release-13.html

- bsc#1178961: %ghost the symlinks to pg_config and ecpg.

Changes in postgresql wrapper package:

- Bump major version to 13.
- We also transfer PostgreSQL 9.4.26 to the new package layout in
  SLE12-SP2 and newer. Reflect this in the conflict with
  postgresql94.
- Also conflict with PostgreSQL versions before 9.
- Conflicting with older versions is not limited to SLE.

This update was imported from the SUSE:SLE-15-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>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">openSUSE-2021-337</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/IQQBNVIVAXDZCJPFZE43ZEZ3C6DSC3WG/</URL>
      <Description>E-Mail link for openSUSE-SU-2021:0337-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/1178666</URL>
      <Description>SUSE Bug 1178666</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1178667</URL>
      <Description>SUSE Bug 1178667</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1178668</URL>
      <Description>SUSE Bug 1178668</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1178961</URL>
      <Description>SUSE Bug 1178961</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2020-25694/</URL>
      <Description>SUSE CVE CVE-2020-25694 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2020-25695/</URL>
      <Description>SUSE CVE CVE-2020-25695 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2020-25696/</URL>
      <Description>SUSE CVE CVE-2020-25696 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="postgresql-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-13-lp152.3.6.1">postgresql-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-contrib-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-contrib-13-lp152.3.6.1">postgresql-contrib-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-devel-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-devel-13-lp152.3.6.1">postgresql-devel-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-docs-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-docs-13-lp152.3.6.1">postgresql-docs-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-llvmjit-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-llvmjit-13-lp152.3.6.1">postgresql-llvmjit-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-plperl-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-plperl-13-lp152.3.6.1">postgresql-plperl-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-plpython-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-plpython-13-lp152.3.6.1">postgresql-plpython-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-pltcl-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-pltcl-13-lp152.3.6.1">postgresql-pltcl-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-server-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-server-13-lp152.3.6.1">postgresql-server-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-server-devel-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-server-devel-13-lp152.3.6.1">postgresql-server-devel-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="postgresql-test-13-lp152.3.6.1">
      <FullProductName ProductID="postgresql-test-13-lp152.3.6.1">postgresql-test-13-lp152.3.6.1</FullProductName>
    </Branch>
    <Relationship ProductReference="postgresql-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-13-lp152.3.6.1">postgresql-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-contrib-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-contrib-13-lp152.3.6.1">postgresql-contrib-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-devel-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-devel-13-lp152.3.6.1">postgresql-devel-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-docs-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-docs-13-lp152.3.6.1">postgresql-docs-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-llvmjit-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-llvmjit-13-lp152.3.6.1">postgresql-llvmjit-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-plperl-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-plperl-13-lp152.3.6.1">postgresql-plperl-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-plpython-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-plpython-13-lp152.3.6.1">postgresql-plpython-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-pltcl-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-pltcl-13-lp152.3.6.1">postgresql-pltcl-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-server-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-server-13-lp152.3.6.1">postgresql-server-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-server-devel-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-server-devel-13-lp152.3.6.1">postgresql-server-devel-13-lp152.3.6.1 as a component of openSUSE Leap 15.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="postgresql-test-13-lp152.3.6.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.2">
      <FullProductName ProductID="openSUSE Leap 15.2:postgresql-test-13-lp152.3.6.1">postgresql-test-13-lp152.3.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">A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. If a client application that creates additional database connections only reuses the basic connection parameters while dropping security-relevant parameters, an opportunity for a man-in-the-middle attack, or the ability to observe clear-text transmissions, could exist. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.</Note>
    </Notes>
    <CVE>CVE-2020-25694</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.2:postgresql-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-contrib-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-devel-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-docs-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-llvmjit-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-plperl-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-plpython-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-pltcl-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-server-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-server-devel-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-test-13-lp152.3.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <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/IQQBNVIVAXDZCJPFZE43ZEZ3C6DSC3WG/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2020-25694.html</URL>
        <Description>CVE-2020-25694</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1178667</URL>
        <Description>SUSE Bug 1178667</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1179870</URL>
        <Description>SUSE Bug 1179870</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 PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. An attacker having permission to create non-temporary objects in at least one schema can execute arbitrary SQL functions under the identity of a superuser. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.</Note>
    </Notes>
    <CVE>CVE-2020-25695</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.2:postgresql-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-contrib-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-devel-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-docs-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-llvmjit-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-plperl-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-plpython-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-pltcl-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-server-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-server-devel-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-test-13-lp152.3.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <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/IQQBNVIVAXDZCJPFZE43ZEZ3C6DSC3WG/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2020-25695.html</URL>
        <Description>CVE-2020-25695</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1178666</URL>
        <Description>SUSE Bug 1178666</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">A flaw was found in the psql interactive terminal of PostgreSQL in versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. If an interactive psql session uses \gset when querying a compromised server, the attacker can execute arbitrary code as the operating system account running psql. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.</Note>
    </Notes>
    <CVE>CVE-2020-25696</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.2:postgresql-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-contrib-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-devel-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-docs-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-llvmjit-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-plperl-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-plpython-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-pltcl-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-server-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-server-devel-13-lp152.3.6.1</ProductID>
        <ProductID>openSUSE Leap 15.2:postgresql-test-13-lp152.3.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <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/IQQBNVIVAXDZCJPFZE43ZEZ3C6DSC3WG/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2020-25696.html</URL>
        <Description>CVE-2020-25696</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1178668</URL>
        <Description>SUSE Bug 1178668</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1179870</URL>
        <Description>SUSE Bug 1179870</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
