USN-4972-1
Tom Lane discovered that PostgreSQL incorrect handled certain array subscripting calculations. An authenticated attacker could possibly use this issue to overwrite server memory and escalate privileges. (CVE-2021-32027) Andres Freund discovered that PostgreSQL incorrect handled certain INSERT ... ON CONFLICT ... DO UPDATE commands. A remote attacker could possibly use this issue to read server memory and obtain sensitive information. (CVE-2021-32028) Tom Lane discovered that PostgreSQL incorrect handled certain UPDATE ... RETURNING commands. A remote attacker could possibly use this issue to read server memory and obtain sensitive information. This issue only affected Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-32029) Update Instructions: Run `sudo pro fix USN-4972-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: postgresql-server-dev-12 - 12.7-0ubuntu0.20.04.1 libecpg-dev - 12.7-0ubuntu0.20.04.1 libpq-dev - 12.7-0ubuntu0.20.04.1 libecpg6 - 12.7-0ubuntu0.20.04.1 libpq5 - 12.7-0ubuntu0.20.04.1 libpgtypes3 - 12.7-0ubuntu0.20.04.1 postgresql-plperl-12 - 12.7-0ubuntu0.20.04.1 postgresql-pltcl-12 - 12.7-0ubuntu0.20.04.1 postgresql-plpython3-12 - 12.7-0ubuntu0.20.04.1 postgresql-doc-12 - 12.7-0ubuntu0.20.04.1 postgresql-12 - 12.7-0ubuntu0.20.04.1 postgresql-client-12 - 12.7-0ubuntu0.20.04.1 libecpg-compat3 - 12.7-0ubuntu0.20.04.1 No subscription required
Evidence and freshness
Last supporting evidence check: 2026-11-28T00:47:41.838Z UTC
Upstream Advisory
Affected Packages
postgresql-server-dev-12 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
libecpg-dev 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
libpq-dev 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
libecpg6 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
libpq5 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
libpgtypes3 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
postgresql-plperl-12 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
postgresql-pltcl-12 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
postgresql-plpython3-12 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
postgresql-doc-12 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
postgresql-12 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
postgresql-client-12 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1
libecpg-compat3 12.7-0ubuntu0.20.04.1-12.7-0ubuntu0.20.04.1