Advisory

DEBIAN-CVE-2024-7348

Also known as: CVE-2024-7348

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2024-08-08 13:15 UTC
Modified
2026-11-02 12:03 UTC

Affected packages and fixes

postgresql-15

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 15.8-0+deb12u1 (ecosystem)

Fixed versions

15.8-0+deb12u1

Fix

  • Fixed version 15.8-0+deb12u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences