ALASPOSTGRESQL12-2024-012


Amazon Linux 2 Security Advisory: ALASPOSTGRESQL12-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:

libpq


Note:

This advisory is applicable to Amazon Linux 2 - Postgresql12 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 libpq to update your system.

New Packages:
aarch64:
    libpq-12.20-1.amzn2.0.1.aarch64
    libpq-devel-12.20-1.amzn2.0.1.aarch64
    libpq-debuginfo-12.20-1.amzn2.0.1.aarch64

i686:
    libpq-12.20-1.amzn2.0.1.i686
    libpq-devel-12.20-1.amzn2.0.1.i686
    libpq-debuginfo-12.20-1.amzn2.0.1.i686

src:
    libpq-12.20-1.amzn2.0.1.src

x86_64:
    libpq-12.20-1.amzn2.0.1.x86_64
    libpq-devel-12.20-1.amzn2.0.1.x86_64
    libpq-debuginfo-12.20-1.amzn2.0.1.x86_64