cbcvebase.
CVE-2024-7348
published 2024-08-08

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…

PriorityP352high7.5CVSS 3.1
AVNACHPRLUINSUCHIHAH
EPSS
1.57%
72.5th percentile
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.

Affected

20 ranges
VendorProductVersion rangeFixed in
debianpostgresql-13< postgresql-13 13.16-0+deb11u1 (bullseye)postgresql-13 13.16-0+deb11u1 (bullseye)
debianpostgresql-15< postgresql-13 13.16-0+deb11u1 (bullseye)postgresql-13 13.16-0+deb11u1 (bullseye)
msrcazl3_postgresql_16.3-1_on_azure_linux_3.0
msrcazl3_postgresql_16.4-1_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_postgresql_14.12-1_on_cbl_mariner_2.0
msrccbl2_postgresql_14.13-1_on_cbl_mariner_2.0
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
postgresqlpostgresql< 12.2012.20
postgresqlpostgresql>= 12.0 < 12.2012.20
postgresqlpostgresql>= 13 < 13.1613.16
postgresqlpostgresql>= 13.0 < 13.1613.16
postgresqlpostgresql>= 14 < 14.1314.13
postgresqlpostgresql>= 14.0 < 14.1314.13
postgresqlpostgresql>= 15 < 15.815.8
postgresqlpostgresql>= 15.0 < 15.815.8
postgresqlpostgresql>= 16 < 16.416.4
postgresqlpostgresql>= 16.0 < 16.416.4

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.5HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
vendor_ubuntu8.8HIGH
vendor_msrc7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.