CVE-2024-7348
Last modified
CVE-2024-7348 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.57% chance of exploitation in the next 30 days.
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:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Postgresql | Postgresql | >= 12.0, < 12.20 |
| Postgresql | Postgresql | >= 13.0, < 13.16 |
| Postgresql | Postgresql | >= 14.0, < 14.13 |
| Postgresql | Postgresql | >= 15.0, < 15.8 |
| Postgresql | Postgresql | >= 16.0, < 16.4 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-7348?
How severe is CVE-2024-7348?
How do I fix CVE-2024-7348?
Are you affected by CVE-2024-7348?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
