Name | CVE-2024-7348 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5745-1, DSA-5746-1, ELA-1172-1, ELA-1173-1, ELA-1174-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
postgresql-11 (PTS) | buster, buster (lts) | 11.22-0+deb10u3 | fixed |
buster (security) | 11.22-0+deb10u2 | vulnerable | |
postgresql-13 (PTS) | bullseye | 13.16-0+deb11u1 | fixed |
bullseye (security) | 13.18-0+deb11u1 | fixed | |
postgresql-15 (PTS) | bookworm | 15.8-0+deb12u1 | fixed |
bookworm (security) | 15.10-0+deb12u1 | fixed | |
postgresql-16 (PTS) | sid, trixie | 16.4-3 | fixed |
postgresql-9.4 (PTS) | jessie, jessie (lts) | 9.4.26-0+deb8u10 | fixed |
postgresql-9.6 (PTS) | stretch (security) | 9.6.24-0+deb9u1 | vulnerable |
stretch (lts), stretch | 9.6.24-0+deb9u7 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
postgresql-11 | source | buster | 11.22-0+deb10u3 | ELA-1172-1 | ||
postgresql-11 | source | (unstable) | (unfixed) | |||
postgresql-13 | source | bullseye | 13.16-0+deb11u1 | DSA-5746-1 | ||
postgresql-13 | source | (unstable) | (unfixed) | |||
postgresql-15 | source | bookworm | 15.8-0+deb12u1 | DSA-5745-1 | ||
postgresql-15 | source | (unstable) | (unfixed) | |||
postgresql-16 | source | (unstable) | 16.4-1 | |||
postgresql-9.4 | source | jessie | 9.4.26-0+deb8u10 | ELA-1174-1 | ||
postgresql-9.4 | source | (unstable) | (unfixed) | |||
postgresql-9.6 | source | stretch | 9.6.24-0+deb9u7 | ELA-1173-1 | ||
postgresql-9.6 | source | (unstable) | (unfixed) |
https://www.postgresql.org/about/news/postgresql-164-158-1413-1316-1220-and-17-beta-3-released-2910/
https://www.postgresql.org/support/security/CVE-2024-7348/
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=79c7a7e29695a32fef2e65682be224b8d61ec972 (REL_12_20)