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.
TOCTOU
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
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
CISA-ADPADP
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 46%
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.21-0+deb11u1
fixed
postgresql-15
bookworm
15.13-0+deb12u1
fixed
bookworm (security)
15.10-0+deb12u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
postgresql-10
oracular
dne
noble
dne
jammy
dne
focal
dne
bionic
Fixed 10.23-0ubuntu0.18.04.2+esm2
released
postgresql-12
oracular
dne
noble
dne
jammy
dne
focal
Fixed 12.20-0ubuntu0.20.04.1
released
postgresql-14
oracular
dne
noble
dne
jammy
Fixed 14.13-0ubuntu0.22.04.1
released
focal
dne
postgresql-16
oracular
not-affected
noble
Fixed 16.4-0ubuntu0.24.04.1
released
jammy
dne
focal
dne
postgresql-9.1
oracular
dne
noble
dne
jammy
dne
focal
dne
postgresql-9.3
oracular
dne
noble
dne
jammy
dne
focal
dne
trusty
Fixed 9.3.24-0ubuntu0.14.04+esm1
released
postgresql-9.5
oracular
dne
noble
dne
jammy
dne
focal
dne
xenial
Fixed 9.5.25-0ubuntu0.16.04.1+esm8
released