Time-of-check Time-of-use (TOCTOU) Race Condition in PostgreSQL - CVE-2024-7348

 

Time-of-check Time-of-use (TOCTOU) Race Condition in PostgreSQL - CVE-2024-7348

Published: August 8, 2024


Vulnerability identifier: #VU95605
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2024-7348
CWE-ID: CWE-367
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: PostgreSQL Global Development Group
Affected software:
PostgreSQL

Detailed vulnerability description

The vulnerability allows a remote user to escalate privileges within the database.

The vulnerability exists due to a race condition when executing concurrent pg_dump sessions. A remote user with privileges to create and drop non-temporary objects can execute arbitrary SQL commands with the privileges of the role running pg_dump (which is often a superuser).


How to mitigate CVE-2024-7348

Install updates from vendor's website.

Sources