VDB

GHSA-3c6g-7v4g-5xcm

GHSA-3c6g-7v4g-5xcm PUBLISHED CVSS 8.800000190734863 HIGH

Record from GitHub Advisory Database · Published August 8, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
postgresql-13Wolfi13.22-r1
postgresql-13Chainguard13.22-r1
postgresql-15Chainguard15.19-r2, 15.14-r0
postgresql-14Chainguard14.24-r2, 14.19-r1
postgresql-15Wolfi15.19-r2, 15.14-r0
postgresql-14Wolfi14.24-r2, 14.19-r1

Risk scores

CVSS 3.1
8.800000190734863
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
wolfipostgresql-130
chainguardpostgresql-130
chainguardpostgresql-150, 0
chainguardpostgresql-140, 0
wolfipostgresql-150, 0
wolfipostgresql-140, 0

Timeline

  • Aug 8, 2024 CVE Published
  • Apr 10, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln GHSA-3c6g-7v4g-5xcm
vulnetix vdb fixes GHSA-3c6g-7v4g-5xcm

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/GHSA-3c6g-7v4g-5xcm/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›