CVE-2024-4317 - Restrict visibility of "pg_stats_ext" and "pg_stats_ext_exprs" entries to the table owner

Suggest edits

First Published: 2024/05/09

Last Updated: 2024/05/09

Important: This is an assessment of the impact of CVE-2024-4317 on EDB products and services. It links to and details the CVE and supplements that information with EDB's own assessment.

Summary

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, which are provided as a convenience in the below section. Within major versions 14-16, minor versions before PostgreSQL 16.3, 15.7, and 14.12 are affected. Versions before PostgreSQL 14 are unaffected.

Vulnerability details

CVE-ID: CVE-2024-4317

CVSS Base Score: 3.1

CVSS Temporal Score: Undefined

CVSS Environmental Score: Undefined

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

Affected products and versions

PostgreSQL

  • All versions of PostgreSQL prior to 16.3
  • All versions of PostgreSQL prior to 15.7
  • All versions of PostgreSQL prior to 14.12

EnterpriseDB Postgres Advanced Server (EPAS)

  • All versions of EPAS prior to 16.3
  • All versions of EPAS prior to 15.7
  • All versions of EPAS prior to 14.12

EnterpriseDB Postgres Extended

  • All versions of PGE prior to 16.3
  • All versions of PGE prior to 15.7
  • All versions of PGE prior to 14.12

Remediation/fixes

The fix is included in the following versions: 16.3, 15.7, and 14.12.

Installing the fix will not remove the vulnerability from existing installations. To remove the vulnerability, follow the instructions in the CVE-2024-4317 advisory.

PostgreSQL Version Information

Affected VersionFixed InFix Published
All versions prior to 16.316.32024-05-09
All versions prior to 15.715.72024-05-09
All versions prior to 14.1214.122024-05-09

EPAS Version Information

ProductVRMFRemediation/First Fix
EPASAll versions prior to 16.3Update to version 16.3 or later
EPASAll versions prior to 15.7Update to version 15.7 or later
EPASAll versions prior to 14.12Update to version 14.12 or later

PGE Version Information

ProductVRMFRemediation/First Fix
PGEAll versions prior to 16.3Update to version 16.3 or later
PGEAll versions prior to 15.7Update to version 15.7 or later
PGEAll versions prior to 14.12Update to version 14.12 or later

References

Acknowledgement

Source: PostgreSQL.org

Change history

9 May 2024: Original Copy Published

Disclaimer

This document is provided on an "as is" basis and does not imply any kind of guarantee or warranty, including the warranties of merchantability or fitness for a particular use. Your use of the information on the document is at your own risk. EDB reserves the right to change or update this document at any time. Customers are therefore recommended to always view the latest version of this document.


Could this page be better? Report a problem or suggest an addition!