cve.bz

CVE-2021-32027 Year 2038 problem, Y2K38, Y2038, Epochalypse

8.8 highEPSS 2.0%Fix available

High (8.8). EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32027 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32027?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32027?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32027 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 9.6.0 before 9.6.22
postgresql:postgresqlfrom 10.0 before 10.17
postgresql:postgresqlfrom 11.0 before 11.12
postgresql:postgresqlfrom 12.0 before 12.7
postgresql:postgresqlfrom 13.0 before 13.3
redhat:jboss_enterprise_application_platform7.0.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9postgresql-9.69.6.22-0+deb9u1DLA-2662-1
Debian10postgresql-1111.12-0+deb10u1DSA-4915-1
Debian11postgresql-1313.3-1DEBIAN-CVE-2021-32027
Ubuntu18.04:LTSpostgresql-1010.17-0ubuntu0.18.04.1UBUNTU-CVE-2021-32027 USN-4972-1
Ubuntu20.04:LTSpostgresql-1212.7-0ubuntu0.20.04.1UBUNTU-CVE-2021-32027 USN-4972-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2021-32027
UbuntuPro:16.04:LTSpostgresql-9.59.5.25-0ubuntu0.16.04.1+esm1UBUNTU-CVE-2021-32027 USN-5645-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationpostgresql, postgresql-docs, postgresql-libs and 10 more0:9.2.24-7.el7_9RHSA-2021:2397
Red Hatenterprise_linux:7::computenodepostgresql, postgresql-docs, postgresql-test and 9 more0:9.2.24-7.el7_9RHSA-2021:2397
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-6.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.4.0+8873+b821c30aRHSA-2021:2375
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.4.0+8873+b821c30aRHSA-2021:2375
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 18 more0:9.6.22-1.module+el8.4.0+11244+beebcf7eRHSA-2021:2360
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:10.17-1.module+el8.4.0+11249+895597abRHSA-2021:2361
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.7-1.module+el8.4.0+11288+c193d6d7RHSA-2021:2372
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:13.3-1.module+el8.4.0+11254+85259292RHSA-2021:2375
Red Hatrhel_eus:8.1::appstreampostgresql, postgresql-docs, postgresql-test and 18 more0:9.6.22-1.module+el8.1.0+11236+e0bc3a70RHSA-2021:2393
Red Hatrhel_eus:8.1::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:10.17-1.module+el8.1.0+11246+8967ca4aRHSA-2021:2392
8 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 morepostgresql1212.12-150100.3.33.1SUSE-SU-2022:2958-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morepostgresql1010.18-4.19.6SUSE-SU-2021:3481-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morepostgresql1010.17-4.35.1SUSE-SU-2021:2777-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 2 morepostgresql1313.3-5.10.1SUSE-SU-2021:1785-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Legacy 15 SP3, Linux Enterprise Module for Server Applications 15 SP2postgresql1010.17-8.35.1SUSE-SU-2021:1970-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Legacy 15 SP3, Linux Enterprise Module for Server Applications 15 SP2postgresql1212.7-8.20.1SUSE-SU-2021:1994-1
SUSELinux Enterprise Module for Package Hub 15 SP3postgresql1313.3-5.10.1SUSE-SU-2021:1785-2
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1010.17-4.16.4SUSE-SU-2021:1782-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1212.7-3.15.3SUSE-SU-2021:1783-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1313.3-3.9.3SUSE-SU-2021:1784-1
openSUSELeap 15.2postgresql1010.17-lp152.2.21.1openSUSE-SU-2021:0894-1
openSUSELeap 15.3postgresql1010.17-8.35.1openSUSE-SU-2021:1970-1
openSUSELeap 15.3postgresql1212.7-8.20.1openSUSE-SU-2021:1994-1
openSUSELeap 15.3postgresql1313.3-5.10.1openSUSE-SU-2021:1785-1
openSUSETumbleweedpostgresql1010.18-1.3openSUSE-SU-2024:11184-1
openSUSETumbleweedpostgresql1111.13-1.3openSUSE-SU-2024:11185-1
openSUSETumbleweedpostgresql1212.8-1.3openSUSE-SU-2024:11186-1
openSUSETumbleweedpostgresql1313.4-1.3openSUSE-SU-2024:11187-1
openSUSETumbleweedpostgresql1414.5-2.1openSUSE-SU-2024:12387-1
openSUSETumbleweedpostgresql1515.4-2.1openSUSE-SU-2024:13243-1
openSUSETumbleweedpostgresql1616.4-1.1openSUSE-SU-2024:14360-1
openSUSETumbleweedpostgresql1717.6-2.1openSUSE-SU-2025:15580-1
AlmaLinux8pgaudit1.5.0-1.module_el8.5.0+2607+8c0fd184ALSA-2021:2375
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2021:2375
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.5.0+2607+8c0fd184ALSA-2021:2375
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2021:2372 ALSA-2021:2375
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2021:2372 ALSA-2021:2375
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 8 more9.6.22-1.module_el8.4.0+2479+beebcf7eALSA-2021:2360
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 8 more9.6.22-1.module_el8.4.0+2492+beebcf7eALSA-2021:2360
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 8 more9.6.22-1.module_el8.5.0+58+52470387ALSA-2021:2360
Rocky Linux8pgaudit0:1.4.0-6.module+el8.4.0+587+d46efd10RLSA-2021:2372
Rocky Linux8pgaudit0:1.5.0-1.module+el8.4.0+546+3620623eRLSA-2021:2375
Rocky Linux8pgaudit0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2021:2375
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2021:2372 RLSA-2021:2375
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:2372 RLSA-2021:2375
Rocky Linux8postgresql0:10.17-1.module+el8.4.0+548+9eccbe3fRLSA-2021:2361
Rocky Linux8postgresql0:12.7-1.module+el8.4.0+545+ca56da2eRLSA-2021:2372
Rocky Linux8postgresql0:13.3-1.module+el8.4.0+546+3620623eRLSA-2021:2375
Rocky Linux8postgresql0:9.6.22-1.module+el8.4.0+547+51cac6dbRLSA-2021:2360
Rocky Linux8postgresql0:9.6.22-1.module+el8.5.0+687+7cd82e08RLSA-2021:2360
Alpinev3.10postgresql11.12-r0ALPINE-CVE-2021-32027
Alpinev3.11, v3.12postgresql12.7-r0ALPINE-CVE-2021-32027
Alpinev3.13, v3.14postgresql13.3-r0ALPINE-CVE-2021-32027
Alpinev3.15, v3.16postgresql13, postgresql1413.3-r0ALPINE-CVE-2021-32027
Alpinev3.17, v3.18, v3.19postgresql13, postgresql14, postgresql1513.3-r0ALPINE-CVE-2021-32027
Alpinev3.20postgresql14, postgresql1513.3-r0ALPINE-CVE-2021-32027

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Writing arbitrary bytes to a wide area of server memory can provide a powerful primitive that could ultimately lead to remote code execution. For this reason this flaw has been rated as having a security impact of Important. The versions of `postgresql` as shipped with Red Hat Enterprise Linux 7, 8 and Red Hat Software Collections are all affected by this flaw. A future update may address this issue.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update as soon as possible.

ProductPackageStateAdvisory
Red Hat Ansible Tower 3.8 for RHEL 7ansible-tower-38/ansible-tower-rhel7:3.8.4-1Fixed 2021-09-08RHBA-2021:3472
Red Hat Enterprise Linux 7postgresql-0:9.2.24-7.el7_9Fixed 2021-06-14RHSA-2021:2397
Red Hat Enterprise Linux 8postgresql:9.6-8040020210602182503.522a0ee4Fixed 2021-06-09RHSA-2021:2360
Red Hat Enterprise Linux 8postgresql:10-8040020210602185500.522a0ee4Fixed 2021-06-09RHSA-2021:2361
Red Hat Enterprise Linux 8postgresql:12-8040020210604112312.522a0ee4Fixed 2021-06-10RHSA-2021:2372
Red Hat Enterprise Linux 8postgresql:13-8040020210602192705.522a0ee4Fixed 2021-06-10RHSA-2021:2375
Red Hat Enterprise Linux 8.1 Extended Update Supportpostgresql:10-8010020210602183449.c27ad7f8Fixed 2021-06-14RHSA-2021:2392
Red Hat Enterprise Linux 8.1 Extended Update Supportpostgresql:9.6-8010020210602124713.c27ad7f8Fixed 2021-06-14RHSA-2021:2393
Red Hat Enterprise Linux 8.2 Extended Update Supportpostgresql:12-8020020210602190140.4cda2c84Fixed 2021-06-14RHSA-2021:2389
Red Hat Enterprise Linux 8.2 Extended Update Supportpostgresql:10-8020020210602183649.4cda2c84Fixed 2021-06-14RHSA-2021:2390
Red Hat Enterprise Linux 8.2 Extended Update Supportpostgresql:9.6-8020020210602142035.4cda2c84Fixed 2021-06-14RHSA-2021:2391
Red Hat build of QuarkuspostgresqlNot affected
Red Hat Decision Manager 7postgresqlNot affected
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Fuse 7postgresqlNot affected
Red Hat JBoss Enterprise Application Platform 6postgresqlOut of support scope
Red Hat JBoss Enterprise Application Platform 7postgresqlNot affected
Red Hat Process Automation 7postgresqlNot affected
6 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-32027.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-298-04Hitachi Energy MicroSCADA X DMS6002022-10-25EnergyDMS600 - DMS600: Version 4.5none listed
ICSA-22-111-03Hitachi Energy MicroSCADA Pro/X SYS6002022-04-21EnergySYS600: Versions 10.1.1 and priornone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON