Skip to main content
CVE-2024-7348VulnerabilityPublished Updated

Postgresql 9.3: Time-of-check Time-of-use (TOCTOU) race condition in pg_dump in PostgreSQL allows an object creator to

Affects postgresql-9.3Source GCVE Database

0
Compare

Not known to be exploited · CVSS 8.8 High · fixed in 9.3.24-0ubuntu0.14.04+esm1 : patch postgresql-9.3 soon.

Data as of 24 Nov 2026, 19:25 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 9.3.24-0ubuntu0.14.04+esm1, 9.5.25-0ubuntu0.16.04.1+esm8, 10.23-0ubuntu0.18.04.2+esm2 +3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Aug 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSpostgresql-16pkg:deb/ubuntu/postgresql-16?arch=source&distro=nobleOther threatsAffected
  • <16.4-0ubuntu0.24.04.1
Fixed in
  • 16.4-0ubuntu0.24.04.1
Ubuntu 22.04 LTSpostgresql-14pkg:deb/ubuntu/postgresql-14?arch=source&distro=jammyOther threatsAffected
  • <14.13-0ubuntu0.22.04.1
Fixed in
  • 14.13-0ubuntu0.22.04.1
Ubuntu 20.04 LTSpostgresql-12pkg:deb/ubuntu/postgresql-12?arch=source&distro=focalOther threatsAffected
  • <12.20-0ubuntu0.20.04.1
Fixed in
  • 12.20-0ubuntu0.20.04.1
Ubuntu Pro 18.04 LTSpostgresql-10pkg:deb/ubuntu/postgresql-10?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <10.23-0ubuntu0.18.04.2+esm2
Fixed in
  • 10.23-0ubuntu0.18.04.2+esm2
Ubuntu Pro 16.04 LTSpostgresql-9.5pkg:deb/ubuntu/postgresql-9.5?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <9.5.25-0ubuntu0.16.04.1+esm8
Fixed in
  • 9.5.25-0ubuntu0.16.04.1+esm8
Ubuntu Pro 14.04 LTSpostgresql-9.3pkg:deb/ubuntu/postgresql-9.3?arch=source&distro=trusty/esmOther threatsAffected
  • <9.3.24-0ubuntu0.14.04+esm1
Fixed in
  • 9.3.24-0ubuntu0.14.04+esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…