Skip to content
OpenAdvisories
Unscored CVE-2021-32028 EUVD-2021-18894GHSA-fr87-j862-8rwm

A flaw was found in postgresql. Using an INSERT ... ON CONFLICT ... DO UPDATE command on a purpose-crafted table, an authenticated database…

Published Oct 11, 2021 · Updated Aug 3, 2024 · Assigned by redhat

Description

A flaw was found in postgresql. Using an INSERT ... ON CONFLICT ... DO UPDATE command on a purpose-crafted table, an authenticated database user could read arbitrary bytes of server memory. The highest threat from this vulnerability is to data confidentiality.

Affected products

VendorProductAffectedFixed
— postgresql postgresql 13.3, postgresql 12.7, postgresql 11.12, postgresql 10.17, postgresql 9.6.22 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 postgresql-13 13.3-1 —
Debian 10 postgresql-11 11.12-0+deb10u1 DSA-4915-1
Debian 9 postgresql-9.6 9.6.22-0+deb9u1 DLA-2662-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS postgresql-12 12.7-0ubuntu0.20.04.1 USN-4972-1
Ubuntu 18.04 LTS postgresql-10 10.17-0ubuntu0.18.04.1 USN-4972-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS postgresql-9.5 No fix yet —
Ubuntu Pro 14.04 LTS postgresql-9.3 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7 RHSA-2021:2375, RHSA-2021:2372
RHEL 8 postgres-decoderbufs 0.10.0-2.module+el8.4.0+8873+b821c30a RHSA-2021:2375, RHSA-2021:2372
RHEL 8 postgresql +10 9.6.22-1.module+el8.4.0+11244+beebcf7e RHSA-2021:2375, RHSA-2021:2372, RHSA-2021:2361
RHEL 8 postgresql-upgrade +1 10.17-1.module+el8.4.0+11249+895597ab RHSA-2021:2375, RHSA-2021:2372, RHSA-2021:2361
RHEL 3 rh-postgresql10-postgresql +13 10.17-1.el7 RHSA-2021:2395
RHEL 3 rh-postgresql12-postgresql +13 12.7-1.el7 RHSA-2021:2394
RHEL 3 rh-postgresql13-postgresql +14 13.3-1.el7 RHSA-2021:2396
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS pgaudit 1.4.0-4.module+el8.2.0+9043+1dbb5661 RHSA-2021:2389
RHEL 8.2 EUS postgres-decoderbufs 0.10.0-2.module+el8.2.0+9043+1dbb5661 RHSA-2021:2389
RHEL 8.2 EUS postgresql +10 9.6.22-1.module+el8.2.0+11238+a7309cb6 RHSA-2021:2391, RHSA-2021:2390, RHSA-2021:2389
RHEL 8.2 EUS postgresql-upgrade +1 10.17-1.module+el8.2.0+11247+01f3c012 RHSA-2021:2390, RHSA-2021:2389
RHEL 8.1 EUS postgresql +10 9.6.22-1.module+el8.1.0+11236+e0bc3a70 RHSA-2021:2393, RHSA-2021:2392
RHEL 8.1 EUS postgresql-upgrade +1 10.17-1.module+el8.1.0+11246+8967ca4a RHSA-2021:2392

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 pgaudit 1.5.0-1.module_el8.5.0+2607+8c0fd184 ALSA-2021:2375
AlmaLinux 8 postgres-decoderbufs 0.10.0-2.module_el8.5.0+2607+8c0fd184 ALSA-2021:2375, ALSA-2021:2372
AlmaLinux 8 postgresql +10 9.6.22-1.module_el8.4.0+2479+beebcf7e ALSA-2021:2360

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 pgaudit 1.4.0-6.module+el8.4.0+587+d46efd10 RLSA-2021:2375, RLSA-2021:2372
Rocky Linux 8 postgres-decoderbufs 0.10.0-2.module+el8.4.0+424+71d47d9a RLSA-2021:2375, RLSA-2021:2372
Rocky Linux 8 postgresql 9.6.22-1.module+el8.4.0+547+51cac6db RLSA-2021:2375, RLSA-2021:2372, RLSA-2021:2361
ReleasePackageFixed inAdvisory
SLES 15 SP3 postgresql10 10.17-8.35.1 SUSE-SU-2021:1970-1
SLES 15 SP3 postgresql12 12.7-8.20.1 SUSE-SU-2021:1994-1
SLES 15 SP3 postgresql13 13.3-5.10.1 SUSE-SU-2021:1785-2, SUSE-SU-2021:1785-1
SLES 15 SP2 postgresql10 10.17-8.35.1 SUSE-SU-2021:1970-1
SLES 15 SP2 postgresql12 12.7-8.20.1 SUSE-SU-2021:1994-1
SLES 15 SP2 postgresql13 13.3-5.10.1 SUSE-SU-2021:1785-1
SLES 15 SP1 postgresql12 12.12-150100.3.33.1 SUSE-SU-2022:2958-1
SLES 15 postgresql10 10.17-4.35.1 SUSE-SU-2021:2777-1
SLES 12 SP5 postgresql10 10.17-4.16.4 SUSE-SU-2021:3481-1, SUSE-SU-2021:1782-1
SLES 12 SP5 postgresql12 12.7-3.15.3 SUSE-SU-2021:1783-1
SLES 12 SP5 postgresql13 13.3-3.9.3 SUSE-SU-2021:1784-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SLES 12 SP3 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SLES 12 SP2 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SLES for SAP 15 SP1 postgresql12 12.12-150100.3.33.1 SUSE-SU-2022:2958-1
SLES for SAP 15 postgresql10 10.17-4.35.1 SUSE-SU-2021:2777-1
SLES for SAP 12 SP5 postgresql10 10.17-4.16.4 SUSE-SU-2021:3481-1, SUSE-SU-2021:1782-1
SLES for SAP 12 SP5 postgresql12 12.7-3.15.3 SUSE-SU-2021:1783-1
SLES for SAP 12 SP5 postgresql13 13.3-3.9.3 SUSE-SU-2021:1784-1
SLES for SAP 12 SP4 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SLES for SAP 12 SP3 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SLE HPC 15 SP1 postgresql12 12.12-150100.3.33.1 SUSE-SU-2022:2958-1
SLE HPC 15 postgresql10 10.17-4.35.1 SUSE-SU-2021:2777-1
SUSE OpenStack Cloud Crowbar 9 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SUSE OpenStack Cloud Crowbar 8 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SUSE OpenStack Cloud 9 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SUSE OpenStack Cloud 8 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SUSE HPE Helion OpenStack 8 postgresql10 10.18-4.19.6 SUSE-SU-2021:3481-1
SUSE Enterprise Storage 6 postgresql12 12.12-150100.3.33.1 SUSE-SU-2022:2958-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed postgresql10 10.18-1.3 openSUSE-SU-2024:11184-1
openSUSE Tumbleweed postgresql11 11.13-1.3 openSUSE-SU-2024:11185-1
openSUSE Tumbleweed postgresql12 12.8-1.3 openSUSE-SU-2024:11186-1
openSUSE Tumbleweed postgresql13 13.4-1.3 openSUSE-SU-2024:11187-1
openSUSE Tumbleweed postgresql14 14.5-2.1 openSUSE-SU-2024:12387-1
openSUSE Tumbleweed postgresql15 15.4-2.1 openSUSE-SU-2024:13243-1
openSUSE Tumbleweed postgresql16 16.4-1.1 openSUSE-SU-2024:14360-1
openSUSE Tumbleweed postgresql17 17.6-2.1 openSUSE-SU-2025:15580-1
openSUSE Leap 15.3 postgresql10 10.17-8.35.1 openSUSE-SU-2021:1970-1
openSUSE Leap 15.3 postgresql12 12.7-8.20.1 openSUSE-SU-2021:1994-1
openSUSE Leap 15.3 postgresql13 13.3-5.10.1 openSUSE-SU-2021:1785-1
openSUSE Leap 15.2 postgresql10 10.17-lp152.2.21.1 openSUSE-SU-2021:0894-1
ReleasePackageFixed inAdvisory
Alpine v3.20 postgresql14 +1 13.3-r0 —
Alpine v3.19 postgresql13 +2 13.3-r0 —
Alpine v3.18 postgresql13 +2 13.3-r0 —
Alpine v3.17 postgresql13 +2 13.3-r0 —
Alpine v3.16 postgresql13 +1 13.3-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.15 postgresql13 +1 13.3-r0 —
Alpine v3.14 postgresql 13.3-r0 —
Alpine v3.13 postgresql 13.3-r0 —
Alpine v3.12 postgresql 12.7-r0 —
Alpine v3.11 postgresql 12.7-r0 —
Alpine v3.10 postgresql 11.12-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 pgaudit 1.4.0-6.module+el8.4.0+20191+2f8d0e59 ELSA-2021-2375, ELSA-2021-2372
Oracle Linux 8 postgres-decoderbufs 0.10.0-2.module+el8.4.0+20016+06fd4df3 ELSA-2021-2375, ELSA-2021-2372
Oracle Linux 8 postgresql +10 9.6.22-1.module+el8.4.0+20189+e6efae45 ELSA-2021-2375, ELSA-2021-2372, ELSA-2021-2361
Oracle Linux 8 postgresql-upgrade +1 10.17-1.module+el8.4.0+20190+84323769 ELSA-2021-2375, ELSA-2021-2372, ELSA-2021-2361
Oracle Linux 7 rh-postgresql10-postgresql +13 10.17-1.el7 ELSA-2021-9428

Advisories 50

References