VDB

CVE-2024-4317

CVE-2024-4317 PUBLISHED CVSS 3.1 LOW

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.

PackageEcosystemFixed in
postgresql-15Wolfi15.19-r2, 15.14-r0
postgresqlBitnami16.3.0, 15.7.0, 14.12.0
postgresql15-docsAmazon Linux15.7-1.amzn2023.0.1
postgresql15-upgrade-develAmazon Linux15.7-1.amzn2023.0.1
postgresql15-staticAmazon Linux15.7-1.amzn2023.0.1
postgresql-14Wolfi14.24-r2, 14.19-r1
postgresql-15Chainguard15.19-r2, 15.14-r0
postgresql15-plperlAmazon Linux15.7-1.amzn2023.0.1
postgresql15-plpython3Amazon Linux15.7-1.amzn2023.0.1
postgresql15-llvmjitAmazon Linux15.7-1.amzn2023.0.1
postgresql15-private-develAmazon Linux15.7-1.amzn2023.0.1
postgresql15-pltclAmazon Linux15.7-1.amzn2023.0.1

14 more packages have a fixed version. See every fix in Lookup.

Risk scores

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

Affected products

VendorProductVersions
n/aPostgreSQL16, 15, 14
wolfipostgresql-150, 0
amazon:2023postgresql15-docs0
amazon:2023postgresql15-upgrade-devel0
amazon:2023postgresql15-static0
wolfipostgresql-140, 0
chainguardpostgresql-150, 0
amazon:2023postgresql15-plperl0
amazon:2023postgresql15-plpython30
amazon:2023postgresql15-llvmjit0
amazon:2023postgresql15-private-devel0
amazon:2023postgresql15-pltcl0
amazon:2023postgresql15-upgrade0
chainguardpostgresql-140, 0
n/aPostgreSQL15, 16, 14
amazon:2023postgresql15-contrib0
wolfipostgresql-160
amazon:2023postgresql15-server0
amazon:2023postgresql15-private-libs0
chainguardpostgresql-160

…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

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