RHSA-2021:0057HighCVSS 8.1

Red Hat Security Advisory: libpq security update

Published
January 11, 2021
Last Modified
August 4, 2026

🔗 CVE IDs covered (2)

📋 Description

CVE-2020-25694 — postgresql: Reconnection can downgrade connection security settings CVE-2020-25696 — postgresql: psql's \gset allows overwriting specially treated variables

🎯 Affected products27

  • Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-0:12.5-1.el8_2.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-0:12.5-1.el8_2.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-0:12.5-1.el8_2.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-0:12.5-1.el8_2.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-0:12.5-1.el8_2.src as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-0:12.5-1.el8_2.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debuginfo-0:12.5-1.el8_2.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debuginfo-0:12.5-1.el8_2.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debuginfo-0:12.5-1.el8_2.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debuginfo-0:12.5-1.el8_2.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debuginfo-0:12.5-1.el8_2.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debugsource-0:12.5-1.el8_2.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debugsource-0:12.5-1.el8_2.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debugsource-0:12.5-1.el8_2.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debugsource-0:12.5-1.el8_2.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-debugsource-0:12.5-1.el8_2.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-0:12.5-1.el8_2.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-0:12.5-1.el8_2.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-0:12.5-1.el8_2.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-0:12.5-1.el8_2.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-0:12.5-1.el8_2.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-debuginfo-0:12.5-1.el8_2.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-debuginfo-0:12.5-1.el8_2.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-debuginfo-0:12.5-1.el8_2.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-debuginfo-0:12.5-1.el8_2.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
  • libpq-devel-debuginfo-0:12.5-1.el8_2.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)

✅ Remediation

For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: Using \gset with a prefix not found among specially treated variables, e.g. any lowercase string, precludes the attack in an unpatched psql.

🔗 References (5)