Amazon Linux 2 Security Advisory: ALASPOSTGRESQL13-2024-007
Advisory Release Date: 2024-09-26 01:10 Pacific
Advisory Updated Date: 2024-10-02 14:50 Pacific
Time-of-check Time-of-use (TOCTOU) race condition in pg_dump in PostgreSQL allows an object creator to execute arbitrary SQL functions as the user running pg_dump, which is often a superuser. The attack involves replacing another relation type with a view or foreign table. The attack requires waiting for pg_dump to start, but winning the race condition is trivial if the attacker retains an open transaction. Versions before PostgreSQL 16.4, 15.8, 14.13, 13.16, and 12.20 are affected. (CVE-2024-7348)
Affected Packages:
postgresql
Note:
This advisory is applicable to Amazon Linux 2 - Postgresql13 Extra. Visit this page to learn more about Amazon Linux 2 (AL2) Extras and this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update postgresql to update your system.
aarch64:
postgresql-13.16-1.amzn2.0.1.aarch64
postgresql-private-libs-13.16-1.amzn2.0.1.aarch64
postgresql-private-devel-13.16-1.amzn2.0.1.aarch64
postgresql-server-13.16-1.amzn2.0.1.aarch64
postgresql-docs-13.16-1.amzn2.0.1.aarch64
postgresql-contrib-13.16-1.amzn2.0.1.aarch64
postgresql-server-devel-13.16-1.amzn2.0.1.aarch64
postgresql-static-13.16-1.amzn2.0.1.aarch64
postgresql-upgrade-13.16-1.amzn2.0.1.aarch64
postgresql-upgrade-devel-13.16-1.amzn2.0.1.aarch64
postgresql-plperl-13.16-1.amzn2.0.1.aarch64
postgresql-plpython3-13.16-1.amzn2.0.1.aarch64
postgresql-pltcl-13.16-1.amzn2.0.1.aarch64
postgresql-test-13.16-1.amzn2.0.1.aarch64
postgresql-llvmjit-13.16-1.amzn2.0.1.aarch64
postgresql-debuginfo-13.16-1.amzn2.0.1.aarch64
i686:
postgresql-13.16-1.amzn2.0.1.i686
postgresql-private-libs-13.16-1.amzn2.0.1.i686
postgresql-private-devel-13.16-1.amzn2.0.1.i686
postgresql-server-13.16-1.amzn2.0.1.i686
postgresql-docs-13.16-1.amzn2.0.1.i686
postgresql-contrib-13.16-1.amzn2.0.1.i686
postgresql-server-devel-13.16-1.amzn2.0.1.i686
postgresql-static-13.16-1.amzn2.0.1.i686
postgresql-upgrade-13.16-1.amzn2.0.1.i686
postgresql-upgrade-devel-13.16-1.amzn2.0.1.i686
postgresql-plperl-13.16-1.amzn2.0.1.i686
postgresql-plpython3-13.16-1.amzn2.0.1.i686
postgresql-pltcl-13.16-1.amzn2.0.1.i686
postgresql-test-13.16-1.amzn2.0.1.i686
postgresql-llvmjit-13.16-1.amzn2.0.1.i686
postgresql-debuginfo-13.16-1.amzn2.0.1.i686
noarch:
postgresql-test-rpm-macros-13.16-1.amzn2.0.1.noarch
src:
postgresql-13.16-1.amzn2.0.1.src
x86_64:
postgresql-13.16-1.amzn2.0.1.x86_64
postgresql-private-libs-13.16-1.amzn2.0.1.x86_64
postgresql-private-devel-13.16-1.amzn2.0.1.x86_64
postgresql-server-13.16-1.amzn2.0.1.x86_64
postgresql-docs-13.16-1.amzn2.0.1.x86_64
postgresql-contrib-13.16-1.amzn2.0.1.x86_64
postgresql-server-devel-13.16-1.amzn2.0.1.x86_64
postgresql-static-13.16-1.amzn2.0.1.x86_64
postgresql-upgrade-13.16-1.amzn2.0.1.x86_64
postgresql-upgrade-devel-13.16-1.amzn2.0.1.x86_64
postgresql-plperl-13.16-1.amzn2.0.1.x86_64
postgresql-plpython3-13.16-1.amzn2.0.1.x86_64
postgresql-pltcl-13.16-1.amzn2.0.1.x86_64
postgresql-test-13.16-1.amzn2.0.1.x86_64
postgresql-llvmjit-13.16-1.amzn2.0.1.x86_64
postgresql-debuginfo-13.16-1.amzn2.0.1.x86_64