CVEfocus › CVE database › CVE-2021-32027

CVE-2021-32027

EPSS 2.0% (higher than 81% of CVEs)Published 2021-06-01Updated 2024-08-03Assigner: redhat

A flaw was found in postgresql in versions before 13.3, before 12.7, before 11.12, before 10.17 and before 9.6.22. While modifying certain SQL array values, missing bounds checks let authenticated database users write arbitrary bytes to a wide area of server memory. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

CWE-190

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

65Fixed
3Fix pending
10Will not fix
17Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04postgresql-12Fixed12.7-0ubuntu0.20.04.1UBUNTU-CVE-2021-32027
Ubuntu 18.04postgresql-10Fixed10.17-0ubuntu0.18.04.1UBUNTU-CVE-2021-32027
Ubuntu 16.04postgresql-9.5Fix pending9.5.25-0ubuntu0.16.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-32027
Ubuntu 14.04postgresql-9.1Fix pending
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2021-32027
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Enterprise Linux 9postgresql-contribNot affected
Red Hat Enterprise Linux 9postgresql-docsNot affected
Red Hat Enterprise Linux 9postgresql-plperlNot affected
Red Hat Enterprise Linux 9postgresql-plpython3Not affected
Red Hat Enterprise Linux 9postgresql-pltclNot affected
Red Hat Enterprise Linux 9postgresql-private-develNot affected
Red Hat Enterprise Linux 9postgresql-private-libsNot affected
Red Hat Enterprise Linux 9postgresql-serverNot affected
Red Hat Enterprise Linux 9postgresql-server-develNot affected
Red Hat Enterprise Linux 9postgresql-staticNot affected
Red Hat Enterprise Linux 9postgresql-testNot affected
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosNot affected
Red Hat Enterprise Linux 9postgresql-upgradeNot affected
Red Hat Enterprise Linux 9postgresql-upgrade-develNot affected
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8libpq-develNot affected
Red Hat Enterprise Linux 8pgauditFixed0:1.5.0-1.module+el8.4.0+8873+b821c30aRHSA-2021:2372
Red Hat Enterprise Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.4.0+11288+c193d6d7RHSA-2021:2375
Red Hat Enterprise Linux 8postgresqlFixed0:10.17-1.module+el8.4.0+11249+895597abRHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-contribFixed0:13.3-1.module+el8.4.0+11254+85259292RHSA-2021:2361
Red Hat Enterprise Linux 8postgresql-docsFixed0:9.6.22-1.module+el8.4.0+11244+beebcf7eRHSA-2021:2361
Red Hat Enterprise Linux 8postgresql-plperlFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2360
Red Hat Enterprise Linux 8postgresql-plpython3Fixed0:10.17-1.module+el8.4.0+11249+895597abRHSA-2021:2375
Red Hat Enterprise Linux 8postgresql-pltclFixed0:10.17-1.module+el8.4.0+11249+895597abRHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-serverFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2360
Red Hat Enterprise Linux 8postgresql-server-develFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2360
Red Hat Enterprise Linux 8postgresql-staticFixed0:13.3-1.module+el8.4.0+11254+85259292RHSA-2021:2361
Red Hat Enterprise Linux 8postgresql-testFixed0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2375
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFixed0:13.3-1.module+el8.4.0+11254+85259292RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-upgradeFixed0:13.3-1.module+el8.4.0+11254+85259292RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql-upgrade-develFixed0:10.17-1.module+el8.4.0+11249+895597abRHSA-2021:2372
Red Hat Enterprise Linux 7postgresqlFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-contribFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-develFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-docsFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-libsFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-plperlFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-plpythonFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-pltclFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-serverFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-staticFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-testFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 7postgresql-upgradeFixed0:9.2.24-7.el7_9RHSA-2021:2397
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
AlmaLinux 8pgauditFixed1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2021:2375
AlmaLinux 8postgres-decoderbufsFixed0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2021:2372
AlmaLinux 8postgresqlFixed9.6.22-1.module_el8.5.0+58+52470387ALSA-2021:2360
AlmaLinux 8postgresql-contribFixed9.6.22-1.module_el8.5.0+58+52470387ALSA-2021:2360
AlmaLinux 8postgresql-docsFixed9.6.22-1.module_el8.4.0+2492+beebcf7eALSA-2021:2360
AlmaLinux 8postgresql-plperlFixed9.6.22-1.module_el8.4.0+2492+beebcf7eALSA-2021:2360
AlmaLinux 8postgresql-plpython3Fixed9.6.22-1.module_el8.4.0+2479+beebcf7eALSA-2021:2360
AlmaLinux 8postgresql-pltclFixed9.6.22-1.module_el8.4.0+2479+beebcf7eALSA-2021:2360
AlmaLinux 8postgresql-serverFixed9.6.22-1.module_el8.4.0+2479+beebcf7eALSA-2021:2360
AlmaLinux 8postgresql-server-develFixed9.6.22-1.module_el8.4.0+2492+beebcf7eALSA-2021:2360
AlmaLinux 8postgresql-staticFixed9.6.22-1.module_el8.5.0+58+52470387ALSA-2021:2360
AlmaLinux 8postgresql-testFixed9.6.22-1.module_el8.5.0+58+52470387ALSA-2021:2360
AlmaLinux 8postgresql-test-rpm-macrosFixed9.6.22-1.module_el8.4.0+2479+beebcf7eALSA-2021:2360
Rocky Linux 8pgauditFixed0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2021:2375
Rocky Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:2372
Rocky Linux 8postgresqlFixed0:9.6.22-1.module+el8.5.0+687+7cd82e08RLSA-2021:2375
Alpine Linux 3.20postgresql14Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.20postgresql15Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.19postgresql13Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.19postgresql14Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.19postgresql15Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.18postgresql13Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.18postgresql14Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.18postgresql15Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.17postgresql13Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.17postgresql14Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.17postgresql15Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.16postgresql13Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.16postgresql14Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.15postgresql13Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.15postgresql14Fixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.14postgresqlFixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.13postgresqlFixed13.3-r0ALPINE-CVE-2021-32027
Alpine Linux 3.12postgresqlFixed12.7-r0ALPINE-CVE-2021-32027
Alpine Linux 3.11postgresqlFixed12.7-r0ALPINE-CVE-2021-32027
Alpine Linux 3.10postgresqlFixed11.12-r0ALPINE-CVE-2021-32027

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.