USN-4972-1

Type: Security
Severity: Medium
Published: 2021-06-01
Ubuntu 20.04 LTS (Focal Fossa)

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

Data current

Last supporting evidence check: 2026-11-28T00:47:41.838Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T00:47:41.838Z UTC. Last updated 2025-11-26T07:43:46.466Z 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

Interested in being alerted when there are new versions of postgresql-server-dev-12 and the other packages? Set up an alert.
USN-4972-1: PostgreSQL vulnerabilities | Package Alert