CVE-2024-7348: PostgreSQL relation replacement during pg_dump executes arbitrary SQL

Published Aug 8, 2024
·
Updated

Last updated 14 November 2024

Other sources

PostgreSQL relation replacement during pgdump executes arbitrary SQL

Microsoft

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Time-of-check Time-of-use (TOCTOU) race condition in pgdump in PostgreSQL allows an object creator to execute arbitrary SQL functions as the user running pgdump, which is often a superuser. The attack involves replacing another relation type with a view or foreign table. The attack requires waiting for pgdump 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.

MITRE

Affected Software

11 affected componentsFixes available
debian/postgresql-13
13.16-0+deb11u113.20-0+deb11u1
debian/postgresql-15
15.10-0+deb12u1
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
Microsoft azl3 postgresql 16.4-1
Microsoft cbl2 postgresql 14.12-1
Microsoft cbl2 postgresql 14.13-1
Microsoft azl3 postgresql 16.3-1

Event History

Aug 8, 2024
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
DescriptionSeverityWeakness
Aug 16, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Aug 19, 2024
Data Sourced
via Launchpad·05:17 PM
Description
Nov 15, 2024
Data Sourced
via Ubuntu·05:30 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-7348?

The severity of CVE-2024-7348 has not been explicitly detailed and likely varies based on the specific context of the affected systems.

2

How do I fix CVE-2024-7348?

To mitigate CVE-2024-7348, update PostgreSQL to a version that is not affected, namely versions later than the specified vulnerable versions.

3

What software is affected by CVE-2024-7348?

CVE-2024-7348 affects specific versions of PostgreSQL, particularly versions 12.0 up to 12.20, 13.0 up to 13.16, and others listed in the advisory.

4

Are there known exploits for CVE-2024-7348?

As of now, there are no publicly known exploits targeting CVE-2024-7348, but monitoring and patching is advised.

5

Is there a workaround for CVE-2024-7348?

Currently, the recommended approach is to upgrade PostgreSQL to a secure version rather than relying on workarounds.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203