Skip to content
Fencer Vulns
medium 6.5

CVE-2021-32029 json

A flaw was found in postgresql.

published 2021-10-08 5 y ago modified 2026-09-08 2 mo ago also BIT-postgresql-2021-32029 , EUVD-2021-18895 , JLSEC-2026-33

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

Summary

A flaw was found in postgresql. Using an UPDATE ... RETURNING 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 11.12.0, 12.7.0, 13.3.0
  • julia LibPQ_jll 14.1.0+0
  • postgresql postgresql 11.12, 12.7, 13.3
  • postgresql-13 Debian 11 13.3-1

debian advisories DEBIAN-CVE-2021-32029

  • postgresql-12 Ubuntu 20.04 LTS 12.7-0ubuntu0.20.04.1

ubuntu advisories UBUNTU-CVE-2021-32029

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:2389RHSA-2021:2375RHSA-2021:2372RHSA-2021:2394RHSA-2021:2396

  • postgresql12 SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +3 more 12.12-150100.3.33.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
  • 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:1785-2SUSE-SU-2021:1994-1SUSE-SU-2021:1785-1SUSE-SU-2021:1784-1SUSE-SU-2021:1783-1

  • postgresql17 openSUSE Tumbleweed 17.6-2.1
  • postgresql16 openSUSE Tumbleweed 16.4-1.1
  • 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
  • postgresql13 openSUSE Leap 15.3 13.3-5.10.1

opensuse advisories openSUSE-SU-2025:15580-1openSUSE-SU-2024:14360-1openSUSE-SU-2024:11185-1openSUSE-SU-2024:11186-1openSUSE-SU-2024:11187-1openSUSE-SU-2024:12387-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

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

  • 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

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

  • 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-32029

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

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-32029 updated cvss 6.5

postgresql: Memory disclosure in partitioned-table UPDATE ... RETURNING

  • 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 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-test 12.7-1.module+el8.4.0+11288+c193d6d7, postgresql-test 13.3-1.module+el8.4.0+11254+85259292, +16 more
    fixed: vendor fix RHSA-2021:2372
  • 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-test 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql-pltcl 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql-plperl 12.7-1.module+el8.2.0+11251+7a3cc531, postgresql-server 12.7-1.module+el8.2.0+11251+7a3cc531, +5 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-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql13-postgresql-libs 13.3-1.el7, rh-postgresql13-postgresql-test 13.3-1.el7, +17 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-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql13-postgresql-libs 13.3-1.el7, rh-postgresql13-postgresql-test 13.3-1.el7, +17 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-postgresql12-postgresql-libs 12.7-1.el7, rh-postgresql12-postgresql-test 12.7-1.el7, rh-postgresql13-postgresql-libs 13.3-1.el7, rh-postgresql13-postgresql-test 13.3-1.el7, +17 more
    fixed: vendor fix RHSA-2021:2394
  • Red Hat build of Quarkus postgresql Red Hat Decision Manager 7 postgresql Red Hat Enterprise Linux 8 libpq, pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, +8 more 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
    +1 more products
    Red Hat Software Collections rh-postgresql10-postgresql, rh-postgresql10-postgresql-libs, rh-postgresql10-postgresql-test, rh-postgresql10-postgresql-pltcl, rh-postgresql10-postgresql-plperl, rh-postgresql10-postgresql-server, +5 more
    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

Exploit prediction

1.50% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).

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
>=11.0.0, <11.12.0
>=12.0.0, <12.7.0
>=13.0.0, <13.3.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
  • CWE-125 Out-of-bounds Read
Technology feeds

References

Sources

Fencer Vulns 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.