GHSA-3c6g-7v4g-5xcm
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql-13 | Wolfi | 13.22-r1 |
| postgresql-13 | Chainguard | 13.22-r1 |
| postgresql-15 | Chainguard | 15.19-r2, 15.14-r0 |
| postgresql-14 | Chainguard | 14.24-r2, 14.19-r1 |
| postgresql-15 | Wolfi | 15.19-r2, 15.14-r0 |
| postgresql-14 | Wolfi | 14.24-r2, 14.19-r1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| wolfi | postgresql-13 | 0 |
| chainguard | postgresql-13 | 0 |
| chainguard | postgresql-15 | 0, 0 |
| chainguard | postgresql-14 | 0, 0 |
| wolfi | postgresql-15 | 0, 0 |
| wolfi | postgresql-14 | 0, 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