Skip to content
Fencer Intel
medium 6.5

CVE-2021-32028 json

A flaw was found in postgresql.

published 5y ago modified 2mo ago also BIT-postgresql-2021-32028 , EUVD-2021-18894 , JLSEC-2026-32

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 75%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami postgresql 9.6.22, 10.17.0, 11.12.0, 12.7.0, 13.3.0
  • julia LibPQ_jll 14.1.0+0
  • postgresql postgresql 9.6.22, 10.17, 11.12, 12.7, 13.3
  • postgresql-13 Debian 11 13.3-1

debian advisories DEBIAN-CVE-2021-32028

  • postgresql-10 Ubuntu 18.04 LTS 10.17-0ubuntu0.18.04.1
  • postgresql-12 Ubuntu 20.04 LTS 12.7-0ubuntu0.20.04.1

ubuntu advisories UBUNTU-CVE-2021-32028

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • pgaudit RHEL 8 1.5.0-1.module+el8.4.0+8873+b821c30a
  • postgresql RHEL 8 13.3-1.module+el8.4.0+11254+85259292
  • postgresql-test RHEL 8 13.3-1.module+el8.4.0+11254+85259292
  • postgresql-pltcl RHEL 8 13.3-1.module+el8.4.0+11254+85259292
  • postgresql-plperl RHEL 8 13.3-1.module+el8.4.0+11254+85259292
  • postgresql-server RHEL 8 13.3-1.module+el8.4.0+11254+85259292
  • postgresql-contrib RHEL 8 13.3-1.module+el8.4.0+11254+85259292
  • postgresql-upgrade RHEL 8 13.3-1.module+el8.4.0+11254+85259292

red hat advisories RHSA-2021:2393RHSA-2021:2391RHSA-2021:2392RHSA-2021:2389RHSA-2021:2390RHSA-2021:2375

  • postgresql12 SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +3 more 12.12-150100.3.33.1
  • postgresql10 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 10.18-4.19.6
  • postgresql10 SLES for SAP 15, SLES 15-LTSS, SLE High Performance Computing 15-LTSS +1 more 10.17-4.35.1
  • postgresql13 SLE Module for Server Applications 15 SP3, SLE Module for Server Applications 15 SP2, SLE Module for Package Hub 15 SP3 +3 more 13.3-5.10.1
  • postgresql12 SLE Module for Server Applications 15 SP2, SLE Module for Legacy 15 SP3, SLE Module for Basesystem 15 SP2 12.7-8.20.1
  • postgresql10 SLE Module for Server Applications 15 SP2, SLE Module for Legacy 15 SP3, SLE Module for Basesystem 15 SP2 10.17-8.35.1
  • postgresql13 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 13.3-3.9.3
  • postgresql12 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 12.7-3.15.3

suse advisories SUSE-SU-2022:2958-1SUSE-SU-2021:3481-1SUSE-SU-2021:2777-1SUSE-SU-2021:1785-2SUSE-SU-2021:1994-1SUSE-SU-2021:1970-1

  • postgresql17 openSUSE Tumbleweed 17.6-2.1
  • postgresql16 openSUSE Tumbleweed 16.4-1.1
  • postgresql10 openSUSE Tumbleweed 10.18-1.3
  • postgresql11 openSUSE Tumbleweed 11.13-1.3
  • postgresql12 openSUSE Tumbleweed 12.8-1.3
  • postgresql13 openSUSE Tumbleweed 13.4-1.3
  • postgresql14 openSUSE Tumbleweed 14.5-2.1
  • postgresql15 openSUSE Tumbleweed 15.4-2.1

opensuse advisories openSUSE-SU-2025:15580-1openSUSE-SU-2024:14360-1openSUSE-SU-2024:11184-1openSUSE-SU-2024:11185-1openSUSE-SU-2024:11186-1openSUSE-SU-2024:11187-1

  • pgaudit AlmaLinux 8 1.5.0-1.module_el8.6.0+2760+1746ec94
  • pgaudit AlmaLinux 8 1.5.0-1.module_el8.5.0+2607+8c0fd184
  • postgres-decoderbufs AlmaLinux 8 0.10.0-2.module_el8.6.0+2760+1746ec94
  • postgres-decoderbufs AlmaLinux 8 0.10.0-2.module_el8.5.0+2607+8c0fd184
  • postgres-decoderbufs AlmaLinux 8 0.10.0-2.module_el8.6.0+2758+4f4474df
  • postgresql AlmaLinux 8 9.6.22-1.module_el8.4.0+2492+beebcf7e
  • postgresql AlmaLinux 8 9.6.22-1.module_el8.4.0+2479+beebcf7e
  • postgresql AlmaLinux 8 9.6.22-1.module_el8.5.0+58+52470387

almalinux advisories ALSA-2021:2375ALSA-2021:2372ALSA-2021:2360

  • pgaudit Rocky Linux 8 1.5.0-1.module+el8.5.0+684+c3892ef9
  • pgaudit Rocky Linux 8 1.5.0-1.module+el8.4.0+546+3620623e
  • postgresql Rocky Linux 8 13.3-1.module+el8.4.0+546+3620623e
  • postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.5.0+684+c3892ef9
  • postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.4.0+424+71d47d9a
  • pgaudit Rocky Linux 8 1.4.0-6.module+el8.4.0+587+d46efd10
  • postgresql Rocky Linux 8 12.7-1.module+el8.4.0+545+ca56da2e
  • postgresql Rocky Linux 8 10.17-1.module+el8.4.0+548+9eccbe3f

rocky linux advisories RLSA-2021:2375RLSA-2021:2372RLSA-2021:2361RLSA-2021:2360

  • postgresql Alpine 3.10 11.12-r0
  • postgresql Alpine 3.12, Alpine 3.11 12.7-r0
  • postgresql Alpine 3.14, Alpine 3.13 13.3-r0
  • postgresql13 Alpine 3.19, Alpine 3.18, Alpine 3.17 +2 more 13.3-r0
  • postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 13.3-r0
  • postgresql15 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 13.3-r0

alpine advisories ALPINE-CVE-2021-32028

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • postgresql Arch Linux 13.3-1

arch linux advisories AVG-1956

Is CVE-2021-32028 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-32028 updated cvss 6.5

postgresql: Memory disclosure in INSERT ... ON CONFLICT ... DO UPDATE

  • Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat JBoss Enterprise Application Platform 6 postgresql
    affected: no fix planned “Out of support scope”
  • Red Hat JBoss Enterprise Application Platform 7 postgresql
    affected: no fix planned “Will not fix”
  • Red Hat Ansible Tower 3.8 for RHEL 7 ansible-tower-38/ansible-tower-rhel7 3.8.4-1
    fixed: vendor fix RHBA-2021:3472
  • Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.7-1.module+el8.4.0+11288+c193d6d7, postgresql 13.3-1.module+el8.4.0+11254+85259292, postgresql 10.17-1.module+el8.4.0+11249+895597ab, postgresql 9.6.22-1.module+el8.4.0+11244+beebcf7e, +33 more
    fixed: vendor fix RHSA-2021:2372
  • Red Hat Enterprise Linux AppStream EUS (v. 8.1) postgresql 10.17-1.module+el8.1.0+11246+8967ca4a, postgresql 9.6.22-1.module+el8.1.0+11236+e0bc3a70, postgresql-test 10.17-1.module+el8.1.0+11246+8967ca4a, postgresql-pltcl 10.17-1.module+el8.1.0+11246+8967ca4a, postgresql-test 9.6.22-1.module+el8.1.0+11236+e0bc3a70, postgresql-plperl 10.17-1.module+el8.1.0+11246+8967ca4a, +11 more
    fixed: vendor fix RHSA-2021:2392
  • Red Hat Enterprise Linux AppStream EUS (v. 8.2) pgaudit 1.4.0-4.module+el8.2.0+9043+1dbb5661, postgresql 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql 10.17-1.module+el8.2.0+11247+01f3c012, postgresql 9.6.22-1.module+el8.2.0+11238+a7309cb6, postgresql-test 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql-pltcl 12.7-1.module+el8.2.0+11251+7a3cc531, +22 more
    fixed: vendor fix RHSA-2021:2389
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql12-postgresql 12.7-1.el7, rh-postgresql13-postgresql 13.3-1.el7, rh-postgresql10-postgresql 10.17-1.el7, rh-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql13-postgresql-libs 13.3-1.el7, +28 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-postgresql12-postgresql 12.7-1.el7, rh-postgresql13-postgresql 13.3-1.el7, rh-postgresql10-postgresql 10.17-1.el7, rh-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql13-postgresql-libs 13.3-1.el7, +28 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql12-postgresql 12.7-1.el7, rh-postgresql13-postgresql 13.3-1.el7, rh-postgresql10-postgresql 10.17-1.el7, rh-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql13-postgresql-libs 13.3-1.el7, +28 more
    fixed: vendor fix RHSA-2021:2395
  • Red Hat build of Quarkus postgresql Red Hat Decision Manager 7 postgresql Red Hat Enterprise Linux 8 libpq Red Hat Enterprise Linux 9 postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, postgresql-contrib, +4 more Red Hat Fuse 7 postgresql Red Hat Process Automation 7 postgresql
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-22-298-04 updated cvss 6.5

Hitachi Energy MicroSCADA X DMS600

  • Hitachi Energy DMS600 4.5
    affected: mitigation “Hitachi Energy DMS600: Update to v4.6.” search.abb.com

From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf

cisa ICSA-22-111-03 updated cvss 6.5

Hitachi Energy MicroSCADA Pro/X SYS600

  • Hitachi Energy SYS600 <= 10.1.1, <=9.4 FP1, >= 10.2.1, >= 10.0.0, <= 10.2.1
    affected: mitigation “For more information see Hitachi Energy advisory 8DBD000075” search.abb.com

From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf

Exploit prediction

1.56% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 4.0 AV:N/AC:L/Au:S/C:P/I:N/A:N
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami postgresql
>=9.6.0, <9.6.22
>=10.0.0, <10.17.0
>=11.0.0, <11.12.0
>=12.0.0, <12.7.0
>=13.0.0, <13.3.0
9.6.22
10.17.0
11.12.0
12.7.0
13.3.0
julia LibPQ_jll
<14.1.0+0
14.1.0+0

Affected products

  • n/a postgresql

Classification

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.