CVE-2024-7348

HIGH
Published Aug 8, 2024 Modified Nov 21, 2024 CWE-367

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.

CVSS v3.1 Score

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

Weakness Type (CWE)

CWE-367 CWE-367

Affected Products

Vendor Product
postgresql postgresql
postgresql postgresql
postgresql postgresql
postgresql postgresql
postgresql postgresql

References

Frequently Asked Questions

What is CVE-2024-7348? +
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. It has a CVSS v3.1 base score of 8.8 (HIGH).
How severe is CVE-2024-7348? +
CVE-2024-7348 has a CVSS v3.1 score of 8.8 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2024-7348? +
CVE-2024-7348 affects products from postgresql, specifically: postgresql. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-7348? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-7348 — free, no signup required.

Start Free Scan