CVE-2024-7348

EUVD-2024-48286
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.
TOCTOU
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
PostgreSQLCNA
8.8 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 72%
Affected Products (NVD)
VendorProductVersion
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
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
postgresql-13
bullseye
13.16-0+deb11u1
fixed
bullseye (security)
13.23-0+deb11u1
fixed
postgresql-15
bookworm
15.14-0+deb12u1
fixed
bookworm (security)
15.10-0+deb12u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
postgresql-16
focal
dne
jammy
dne
noble
Fixed 16.4-0ubuntu0.24.04.1
released
oracular
not-affected
postgresql-14
focal
dne
jammy
Fixed 14.13-0ubuntu0.22.04.1
released
noble
dne
oracular
dne
postgresql-12
focal
Fixed 12.20-0ubuntu0.20.04.1
released
jammy
dne
noble
dne
oracular
dne
postgresql-10
bionic
Fixed 10.23-0ubuntu0.18.04.2+esm2
released
focal
dne
jammy
dne
noble
dne
oracular
dne
postgresql-9.5
focal
dne
jammy
dne
noble
dne
oracular
dne
xenial
Fixed 9.5.25-0ubuntu0.16.04.1+esm8
released
postgresql-9.3
focal
dne
jammy
dne
noble
dne
oracular
dne
trusty
Fixed 9.3.24-0ubuntu0.14.04+esm1
released
postgresql-9.1
focal
dne
jammy
dne
noble
dne
oracular
dne