Vulnerability in Postgresql

CVE-2024-7348

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.

Vulnerability class: TOCTOU (Time-of-Check to Time-of-Use)

EPSS: 0.016 (72.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-7348?
CVE-2024-7348 is a high-severity vulnerability in Postgresql, classified under Time-of-check Time-of-use (TOCTOU) Race Condition. CVSS score: 8.8/10. Published 2024-08-08.
How severe is CVE-2024-7348?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2024-7348 known to be exploited?
4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.