Vulnerabilities

CVE-2024-7348

High 7.5 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2024-08-08
Last modified
2026-06-17
Assigned by
f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
1.6 % higher than 73 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Postgresql Postgresql ≥ 12.0, < 12.20 Affected
Postgresql Postgresql ≥ 13.0, < 13.16 Affected
Postgresql Postgresql ≥ 14.0, < 14.13 Affected
Postgresql Postgresql ≥ 15.0, < 15.8 Affected
Postgresql Postgresql ≥ 16.0, < 16.4 Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities