CVE Catalog

CVE-2024-7348

Medium
Published: Translated: NVD NIST

Summary

A TOCTOU race condition in pg_dump in PostgreSQL allows an object creator to replace another relation type with a view or foreign table, executing arbitrary SQL functions as the user running pg_dump, often a superuser. The attack requires waiting for the right moment.

Risk Assessment

An attacker can gain unauthorized data access or escalate privileges to superuser level, posing a serious risk to database confidentiality and integrity.

Recommendation

Immediately update PostgreSQL to a patched version and restrict privileges of users who can create database objects.

Original NVD description (English source)

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 waitin

Vulnerability data from NVD (NIST) · CISA KEV · EPSS