dhelonious / mastodon-snap

Unofficial snap for Mastodon 🦣📦
GNU Affero General Public License v3.0
1 stars 0 forks source link

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

Closed dhelonious closed 3 weeks ago

dhelonious commented 1 month ago

Is there an existing issue for this?

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.

An upgrade to PostgreSQL 16.4 is required.

Severity

High

References

https://www.postgresql.org/support/security/CVE-2024-7348

dhelonious commented 3 weeks ago

This has been fixed with 4.2.10snap5