CVE-2024-7348
HIGHEPSS 74th pctlDescription
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.
How to fix
This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploit Intelligence
Elevated risk: more likely to be exploited than 74% of all known CVEs.
References
Related Vulnerabilities
Other CWE-367 (TOCTOU Race Condition) vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2022-36980 | High | 8.1 | 83% | - | Fix |
| CVE-2024-30088 | High | 7.0 | 68% | KEV + Ransom | Fix |
| CVE-2004-0594 | Medium | 5.1 | 55% | - | Fix |
| CVE-2025-34027 | Critical | 9.0 | 45% | - | - |
| CVE-2024-50379 | Critical | 9.8 | 44% | - | Fix |
| CVE-2024-0132 | Critical | 9.0 | 41% | - | Fix |
Common questions
How do I fix CVE-2024-7348?
Published advisories record a fix for 98 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.
Is CVE-2024-7348 being actively exploited?
Not that we know of. CVE-2024-7348 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.6% is the estimated probability that it will be exploited in the next 30 days. That is higher than 74% of all scored CVEs.
How severe is CVE-2024-7348?
CVE-2024-7348 has a CVSS v3 base score of 8.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2024-7348 affect?
Published advisories record a fix for postgresql (Amazon), postgresql-contrib (Amazon), postgresql-debuginfo (Amazon), postgresql-devel (Amazon), and 94 more. The list on this page is capped, so there may be more.
Embed a live status badge for CVE-2024-7348
Markdown
[](https://tridentstack.com/cve/CVE-2024-7348)HTML
<a href="https://tridentstack.com/cve/CVE-2024-7348"><img src="https://tridentstack.com/cve/badge/CVE-2024-7348.svg" alt="CVE-2024-7348"></a>Check your Linux endpoints for this class of vulnerability
TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.