USN-5145-1

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

Jacob Champion discovered that PostgreSQL incorrectly handled SSL certificate verification and encryption. A remote attacker could possibly use this issue to inject arbitrary SQL queries when a connection is first established. Update Instructions: Run `sudo pro fix USN-5145-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: libpq5 - 12.9-0ubuntu0.20.04.1 postgresql-server-dev-12 - 12.9-0ubuntu0.20.04.1 libecpg6 - 12.9-0ubuntu0.20.04.1 postgresql-plpython3-12 - 12.9-0ubuntu0.20.04.1 libpgtypes3 - 12.9-0ubuntu0.20.04.1 postgresql-plperl-12 - 12.9-0ubuntu0.20.04.1 postgresql-pltcl-12 - 12.9-0ubuntu0.20.04.1 libecpg-dev - 12.9-0ubuntu0.20.04.1 libpq-dev - 12.9-0ubuntu0.20.04.1 postgresql-doc-12 - 12.9-0ubuntu0.20.04.1 postgresql-12 - 12.9-0ubuntu0.20.04.1 postgresql-client-12 - 12.9-0ubuntu0.20.04.1 libecpg-compat3 - 12.9-0ubuntu0.20.04.1 No subscription required

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T23:47:41.555Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-27T23:47:41.555Z UTC. Last updated 2025-11-26T07:55:11.384Z UTC.

Upstream Advisory

Affected Packages

  • libpq5 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • postgresql-server-dev-12 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • libecpg6 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • postgresql-plpython3-12 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • libpgtypes3 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • postgresql-plperl-12 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • postgresql-pltcl-12 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • libecpg-dev 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • libpq-dev 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • postgresql-doc-12 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • postgresql-12 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • postgresql-client-12 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

  • libecpg-compat3 12.9-0ubuntu0.20.04.1-12.9-0ubuntu0.20.04.1

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