Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2024-7348 Details

Description

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-367Time-of-check Time-of-use (TOCTOU) Race Condition[email protected]
CWE-367Time-of-check Time-of-use (TOCTOU) Race ConditionPostgreSQL

Affected Products

ProductVersions
postgresql postgresql
>= 12.0, < 12.20
>= 13.0, < 13.16
>= 14.0, < 14.13
>= 15.0, < 15.8
>= 16.0, < 16.4

CPE

  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

5 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2024-7348
NVD Published Date:
Aug 8, 2024
NVD Last Modified:
Jun 17, 2026
Source:
PostgreSQL
CVE-2024-7348 Details - Not Deferred