CVE-2024-4317: PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks
Last updated 24 July 2024
Other sources
Missing authorization in PostgreSQL built-in views pgstatsext and pgstatsextexprs 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.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/postgresql-13to a version that resolves this vulnerability.Fixed in 13.16-0+deb11u1 - Upgrade
Upgrade
debian/postgresql-16to a version that resolves this vulnerability.Fixed in 16.4-1 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 16.3 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 15.7 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 14.12 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 16.3 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 15.7 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 14.12
Event History
Frequently Asked Questions
What is the severity of CVE-2024-4317?
CVE-2024-4317 is considered a medium severity vulnerability due to its potential to leak sensitive statistical information from PostgreSQL.
How do I fix CVE-2024-4317?
To remediate CVE-2024-4317, upgrade PostgreSQL to the recommended versions, including 13.16-0+deb11u1 for Debian or 16.4-1 for PostgreSQL 16.
Which PostgreSQL versions are affected by CVE-2024-4317?
CVE-2024-4317 affects PostgreSQL versions 13, 14, 15, and 16 up to specific release levels.
Can unprivileged users exploit CVE-2024-4317?
Yes, unprivileged database users can exploit CVE-2024-4317 to access statistical information of other users.
What are the risks of CVE-2024-4317?
The risks associated with CVE-2024-4317 include potential exposure of sensitive data through statistical values accessible to unauthorized users.