CVE-2024-7348 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 15, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://security.netapp.com/advisory/ntap-20240822-0002/ | CVE | |
| http://www.openwall.com/lists/oss-security/2024/08/11/1 | CVE | |
| https://www.postgresql.org/support/security/CVE-2024-7348/ | PostgreSQL | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| postgresql postgresql | >= 12.0, < 12.20 >= 13.0, < 13.16 >= 14.0, < 14.13 >= 15.0, < 15.8 >= 16.0, < 16.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| Aug 12, 2024 | Initial Analysis | [email protected] |
| Aug 8, 2024 | New CVE Received | PostgreSQL |