All vulnerabilities

Servers and applications

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…

Severity
High 7.5
Published
8 Aug 2024
Last changed
17 Jun 2026
Added to UpHeron
16 Oct 2026
Fixed in
12.20, 13.16, 14.13, 15.8, 16.4
Sources
NVD

Affected software

SoftwareAffected versions
PostgreSQLServers and applications · cpe:a:postgresql:postgresql
  • From 12.0 before 12.20
  • From 13.0 before 13.16
  • From 14.0 before 14.13
  • From 15.0 before 15.8
  • From 16.0 before 16.4

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2024-7348
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2024-7348