ALASPOSTGRESQL14-2024-012


Amazon Linux 2 Security Advisory: ALASPOSTGRESQL14-2024-012
Advisory Release Date: 2024-09-26 01:10 Pacific
Advisory Updated Date: 2024-10-02 14:50 Pacific
Severity: Important

Issue Overview:

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 - Postgresql14 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.

New Packages:
aarch64:
    postgresql-14.13-1.amzn2.0.1.aarch64
    postgresql-server-14.13-1.amzn2.0.1.aarch64
    postgresql-docs-14.13-1.amzn2.0.1.aarch64
    postgresql-contrib-14.13-1.amzn2.0.1.aarch64
    postgresql-server-devel-14.13-1.amzn2.0.1.aarch64
    postgresql-static-14.13-1.amzn2.0.1.aarch64
    postgresql-upgrade-14.13-1.amzn2.0.1.aarch64
    postgresql-upgrade-devel-14.13-1.amzn2.0.1.aarch64
    postgresql-plperl-14.13-1.amzn2.0.1.aarch64
    postgresql-plpython3-14.13-1.amzn2.0.1.aarch64
    postgresql-pltcl-14.13-1.amzn2.0.1.aarch64
    postgresql-test-14.13-1.amzn2.0.1.aarch64
    postgresql-llvmjit-14.13-1.amzn2.0.1.aarch64
    postgresql-debuginfo-14.13-1.amzn2.0.1.aarch64

noarch:
    postgresql-test-rpm-macros-14.13-1.amzn2.0.1.noarch

src:
    postgresql-14.13-1.amzn2.0.1.src

x86_64:
    postgresql-14.13-1.amzn2.0.1.x86_64
    postgresql-server-14.13-1.amzn2.0.1.x86_64
    postgresql-docs-14.13-1.amzn2.0.1.x86_64
    postgresql-contrib-14.13-1.amzn2.0.1.x86_64
    postgresql-server-devel-14.13-1.amzn2.0.1.x86_64
    postgresql-static-14.13-1.amzn2.0.1.x86_64
    postgresql-upgrade-14.13-1.amzn2.0.1.x86_64
    postgresql-upgrade-devel-14.13-1.amzn2.0.1.x86_64
    postgresql-plperl-14.13-1.amzn2.0.1.x86_64
    postgresql-plpython3-14.13-1.amzn2.0.1.x86_64
    postgresql-pltcl-14.13-1.amzn2.0.1.x86_64
    postgresql-test-14.13-1.amzn2.0.1.x86_64
    postgresql-llvmjit-14.13-1.amzn2.0.1.x86_64
    postgresql-debuginfo-14.13-1.amzn2.0.1.x86_64