CVE-2024-7348

HIGHCVSS 7.5/10EPSS 1.57%

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
7.5/10

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

EPSS Probability
1.57%

72.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PostgresqlPostgresql>= 12.0, < 12.20
PostgresqlPostgresql>= 13.0, < 13.16
PostgresqlPostgresql>= 14.0, < 14.13
PostgresqlPostgresql>= 15.0, < 15.8
PostgresqlPostgresql>= 16.0, < 16.4

References

Timeline

Published
Last Modified
Status
Modified

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.
How severe is CVE-2024-7348?
CVE-2024-7348 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 1.57% probability of exploitation in the next 30 days.
How do I fix CVE-2024-7348?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-7348?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST