CVE-2024-7348
Published:August 08, 2024
Updated:May 17, 2026
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 Packages
postgresql (CONDA):
Affected version(s) >=9.5.3 <10.6Fix Suggestion:
Update to version 10.6libpq (CONDA):
Affected version(s) >=13.1 <14.12Fix Suggestion:
Update to version 14.12libpq (CONDA):
Affected version(s) >=10.3 <12.20Fix Suggestion:
Update to version 12.20protoculture.postgres.embedded (NUGET):
Affected version(s) =0.0.1-pre <0.0.2-preFix Suggestion:
Update to version 0.0.2-pregdal_custom (NUGET):
Affected version(s) =1.0.0Fix Suggestion:
Update to version no_fixpq-src (RUST):
Affected version(s) >=0.1.0 <0.3.2Fix Suggestion:
Update to version 0.3.2Related Resources (1)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Time-of-check Time-of-use (TOCTOU) Race Condition
EPSS
Base Score:
0.74