ALAS-2025-2733


Amazon Linux 2 Security Advisory: ALAS-2025-2733
Advisory Release Date: 2025-01-21 20:25 Pacific
Advisory Updated Date: 2025-01-24 11:38 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 (AL2) Core repository. Visit 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-9.2.24-8.amzn2.0.4.aarch64
    postgresql-libs-9.2.24-8.amzn2.0.4.aarch64
    postgresql-server-9.2.24-8.amzn2.0.4.aarch64
    postgresql-docs-9.2.24-8.amzn2.0.4.aarch64
    postgresql-contrib-9.2.24-8.amzn2.0.4.aarch64
    postgresql-devel-9.2.24-8.amzn2.0.4.aarch64
    postgresql-static-9.2.24-8.amzn2.0.4.aarch64
    postgresql-upgrade-9.2.24-8.amzn2.0.4.aarch64
    postgresql-plperl-9.2.24-8.amzn2.0.4.aarch64
    postgresql-plpython-9.2.24-8.amzn2.0.4.aarch64
    postgresql-pltcl-9.2.24-8.amzn2.0.4.aarch64
    postgresql-test-9.2.24-8.amzn2.0.4.aarch64
    postgresql-debuginfo-9.2.24-8.amzn2.0.4.aarch64

i686:
    postgresql-9.2.24-8.amzn2.0.4.i686
    postgresql-libs-9.2.24-8.amzn2.0.4.i686
    postgresql-server-9.2.24-8.amzn2.0.4.i686
    postgresql-docs-9.2.24-8.amzn2.0.4.i686
    postgresql-contrib-9.2.24-8.amzn2.0.4.i686
    postgresql-devel-9.2.24-8.amzn2.0.4.i686
    postgresql-static-9.2.24-8.amzn2.0.4.i686
    postgresql-upgrade-9.2.24-8.amzn2.0.4.i686
    postgresql-plperl-9.2.24-8.amzn2.0.4.i686
    postgresql-plpython-9.2.24-8.amzn2.0.4.i686
    postgresql-pltcl-9.2.24-8.amzn2.0.4.i686
    postgresql-test-9.2.24-8.amzn2.0.4.i686
    postgresql-debuginfo-9.2.24-8.amzn2.0.4.i686

src:
    postgresql-9.2.24-8.amzn2.0.4.src

x86_64:
    postgresql-9.2.24-8.amzn2.0.4.x86_64
    postgresql-libs-9.2.24-8.amzn2.0.4.x86_64
    postgresql-server-9.2.24-8.amzn2.0.4.x86_64
    postgresql-docs-9.2.24-8.amzn2.0.4.x86_64
    postgresql-contrib-9.2.24-8.amzn2.0.4.x86_64
    postgresql-devel-9.2.24-8.amzn2.0.4.x86_64
    postgresql-static-9.2.24-8.amzn2.0.4.x86_64
    postgresql-upgrade-9.2.24-8.amzn2.0.4.x86_64
    postgresql-plperl-9.2.24-8.amzn2.0.4.x86_64
    postgresql-plpython-9.2.24-8.amzn2.0.4.x86_64
    postgresql-pltcl-9.2.24-8.amzn2.0.4.x86_64
    postgresql-test-9.2.24-8.amzn2.0.4.x86_64
    postgresql-debuginfo-9.2.24-8.amzn2.0.4.x86_64