ALPINE-CVE-2024-7348 PUBLISHED CVSS 7.5 HIGH

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.

Risk Scores

CVSS v3.1
7.5
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected Products

VendorProductVersions
Alpine:v3.18postgresql1515.2-r3, 15.2-r0, 15.1-r1
Alpine:v3.19postgresql1616.0-r1, 16.0-r0, 0
Alpine:v3.18postgresql149.6.0-r1, 9.6.0-r0, 9.5.4-r0
Alpine:v3.20postgresql1515.6-r0, 15.1-r0, 15.1-r1
Alpine:v3.17postgresql1515.6-r0, 15.5-r0, 15.3-r0
Alpine:v3.20postgresql1616.1-r0, 16.2-r2, 16.3-r0
Alpine:v3.21postgresql1616.2-r4, 16.0-r1, 16.0-r2
Alpine:v3.19postgresql150, 0, 15.6-r0
Alpine:v3.22postgresql1616.3-r1, 16.3-r0, 16.2-r4
Alpine:v3.17postgresql1414.1-r0, 14.0-r6, 13.3-r1

Timeline

References

Open in Interactive Console →