CVE-2024-4317
PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks
Reported by postgresql · Published May 9, 2024
Missing authorization in PostgreSQL built-in views pg_stats_ext and pg_stats_ext_exprs allows an unprivileged database user to read most common values and other statistics from CREATE STATISTICS commands of other users. The most common values may reveal column values the eavesdropper could not otherwise read or results of functions they cannot execute. Installing an unaffected version only fixes fresh PostgreSQL installations, namely those that are created with the initdb utility after installing that version. Current PostgreSQL installations will remain vulnerable until they follow the instructions in the release notes. Within major versions 14-16, minor versions before PostgreSQL 16.3, 15.7, and 14.12 are affected. Versions before PostgreSQL 14 are unaffected.
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-15 | Wolfi | 15.19-r2, 15.14-r0 |
| postgresql | Bitnami | 16.3.0, 15.7.0, 14.12.0 |
| postgresql15-docs | Amazon Linux | 15.7-1.amzn2023.0.1 |
| postgresql15-upgrade-devel | Amazon Linux | 15.7-1.amzn2023.0.1 |
| postgresql15-static | Amazon Linux | 15.7-1.amzn2023.0.1 |
| postgresql-14 | Wolfi | 14.24-r2, 14.19-r1 |
| postgresql-15 | Chainguard | 15.19-r2, 15.14-r0 |
| postgresql15-plperl | Amazon Linux | 15.7-1.amzn2023.0.1 |
| postgresql15-plpython3 | Amazon Linux | 15.7-1.amzn2023.0.1 |
| postgresql15-llvmjit | Amazon Linux | 15.7-1.amzn2023.0.1 |
| postgresql15-private-devel | Amazon Linux | 15.7-1.amzn2023.0.1 |
| postgresql15-pltcl | Amazon Linux | 15.7-1.amzn2023.0.1 |
14 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | PostgreSQL | 16, 15, 14 |
| wolfi | postgresql-15 | 0, 0 |
| amazon:2023 | postgresql15-docs | 0 |
| amazon:2023 | postgresql15-upgrade-devel | 0 |
| amazon:2023 | postgresql15-static | 0 |
| wolfi | postgresql-14 | 0, 0 |
| chainguard | postgresql-15 | 0, 0 |
| amazon:2023 | postgresql15-plperl | 0 |
| amazon:2023 | postgresql15-plpython3 | 0 |
| amazon:2023 | postgresql15-llvmjit | 0 |
| amazon:2023 | postgresql15-private-devel | 0 |
| amazon:2023 | postgresql15-pltcl | 0 |
| amazon:2023 | postgresql15-upgrade | 0 |
| chainguard | postgresql-14 | 0, 0 |
| n/a | PostgreSQL | 15, 16, 14 |
| amazon:2023 | postgresql15-contrib | 0 |
| wolfi | postgresql-16 | 0 |
| amazon:2023 | postgresql15-server | 0 |
| amazon:2023 | postgresql15-private-libs | 0 |
| chainguard | postgresql-16 | 0 |
…and 4 more
Timeline
- May 9, 2024 CVE Published
- May 10, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (12 in total, the first dated here)
- Mar 28, 2025 CVE Updated
- Jun 2, 2026 Security Advisory (11 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-4317
vulnetix vdb fixes CVE-2024-4317
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/CVE-2024-4317/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart