CVE & CISA-KEV Catalog

CVE-2024-7348

HIGHEPSS 74th pctl
8.8
CVSS v3
NVD

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.

How to fix

Remediation Available
postgresqlAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-contribAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-debuginfoAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-develAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-docsAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-libsAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-plperlAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-plpythonAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-pltclAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-serverAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-staticAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-testAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql-upgradeAmazon
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
Fixed in:0:9.2.24-8.amzn2.0.4
postgresql15Amazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-contribAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-contrib-debuginfoAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-debuginfoAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-debugsourceAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-docsAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-docs-debuginfoAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-llvmjitAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-llvmjit-debuginfoAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-plperlAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-plperl-debuginfoAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-plpython3Amazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-plpython3-debuginfoAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-pltclAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-pltcl-debuginfoAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-private-develAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1
postgresql15-private-libsAmazon
Fixed in:0:15.8-1.amzn2023.0.1
Fixed in:0:15.8-1.amzn2023.0.1

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

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.57%probability of exploitation in 30 days
74thpercentile

Elevated risk: more likely to be exploited than 74% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-367 (TOCTOU Race Condition) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-36980High8.183%-Fix
CVE-2024-30088High7.068%KEV + RansomFix
CVE-2004-0594Medium5.155%-Fix
CVE-2025-34027Critical9.045%--
CVE-2024-50379Critical9.844%-Fix
CVE-2024-0132Critical9.041%-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
CVE-2024-7348 severity badge

Markdown

[![CVE-2024-7348](https://tridentstack.com/cve/badge/CVE-2024-7348.svg)](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.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

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.