Red Hat Security Advisory: postgresql:10 security update
🔗 CVE IDs covered (3)
📋 Description
CVE-2020-25694 — postgresql: Reconnection can downgrade connection security settings CVE-2020-25695 — postgresql: Multiple features escape "security restricted operation" sandbox CVE-2020-25696 — postgresql: psql's \gset allows overwriting specially treated variables
🎯 Affected products102
- Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-0:10.15-1.module+el8.2.0+8945+21c7d5de.aarch64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-0:10.15-1.module+el8.2.0+8945+21c7d5de.ppc64le (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-0:10.15-1.module+el8.2.0+8945+21c7d5de.s390x (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-0:10.15-1.module+el8.2.0+8945+21c7d5de.src (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-0:10.15-1.module+el8.2.0+8945+21c7d5de.x86_64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-contrib-0:10.15-1.module+el8.2.0+8945+21c7d5de.aarch64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-contrib-0:10.15-1.module+el8.2.0+8945+21c7d5de.ppc64le (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-contrib-0:10.15-1.module+el8.2.0+8945+21c7d5de.s390x (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-contrib-0:10.15-1.module+el8.2.0+8945+21c7d5de.x86_64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-contrib-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.aarch64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-contrib-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.ppc64le (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-contrib-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.s390x (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-contrib-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.x86_64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.aarch64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.ppc64le (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.s390x (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.x86_64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-debugsource-0:10.15-1.module+el8.2.0+8945+21c7d5de.aarch64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-debugsource-0:10.15-1.module+el8.2.0+8945+21c7d5de.ppc64le (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-debugsource-0:10.15-1.module+el8.2.0+8945+21c7d5de.s390x (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-debugsource-0:10.15-1.module+el8.2.0+8945+21c7d5de.x86_64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-docs-0:10.15-1.module+el8.2.0+8945+21c7d5de.aarch64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-docs-0:10.15-1.module+el8.2.0+8945+21c7d5de.ppc64le (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-docs-0:10.15-1.module+el8.2.0+8945+21c7d5de.s390x (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-docs-0:10.15-1.module+el8.2.0+8945+21c7d5de.x86_64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-docs-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.aarch64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-docs-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.ppc64le (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-docs-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.s390x (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- postgresql-docs-debuginfo-0:10.15-1.module+el8.2.0+8945+21c7d5de.x86_64 (postgresql:10) as a component of Red Hat Enterprise Linux AppStream EUS (v. 8.2)
- +72 more not shown
✅ 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 If the postgresql service is running, it will be automatically restarted after installing this update. Workaround: While promptly updating PostgreSQL is the best remediation for most users, a user unable to do that can work around the vulnerability by disabling autovacuum and not manually running ANALYZE, CLUSTER, REINDEX, CREATE INDEX, VACUUM FULL, REFRESH MATERIALIZED VIEW, or a restore from output of the pg_dump command. Performance may degrade quickly under this workaround. 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 (6)
- selfhttps://access.redhat.com/errata/RHSA-2021:0161
- externalhttps://access.redhat.com/security/updates/classification/#important
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1894423
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1894425
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1894430
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_0161.json