CVE-2024-4317

PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks

Description

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.

Remediation

Workaround:

  • apply corrected view definitions; see PostgreSQL release notes
  • REVOKE SELECT ON pg_stats_ext, pg_stats_ext_exprs FROM PUBLIC

Category

3.1
CVSS
Severity: Low
CVSS 3.1 •
EPSS 0.02%
Vendor Advisory postgresql.org
Affected: n/a PostgreSQL
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-4317?
CVE-2024-4317 has been scored as a low severity vulnerability.
How to fix CVE-2024-4317?
As a workaround for remediating CVE-2024-4317: apply corrected view definitions; see PostgreSQL release notes
Is CVE-2024-4317 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-4317 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-4317?
CVE-2024-4317 affects n/a PostgreSQL.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.