Vulnerabilities · 2024 · Postgresql
CVE-2024-7348
Postgresql vulnerability
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.
Affected products
Postgresql. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Postgresql runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
More vulnerabilities in Postgresql products
CVE-2025-49146CVE-2024-10979CVE-2024-10978CVE-2024-10977CVE-2024-10976CVE-2024-4317CVE-2024-1597CVE-2024-0985All 168
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.