Bug 2279935 (CVE-2024-4317)

Summary: CVE-2024-4317 postgresql: PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aarif, aprice, caswilli, fjansen, fjanus, hhorak, hkataria, jdobes, jorton, jsamir, kaycoth, kholdawa, kshier, lcouzens, mpierce, mskarbek, oezr, orabin, psegedy
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: postgresql 16.3, postgresql 15.7, postgresql 14.12 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in PostgreSQL. Missing authorization in the 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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2279936, 2279937, 2279938, 2279939, 2279940, 2279941    
Bug Blocks: 2290819    

Description Avinash Hanwate 2024-05-10 03:48:44 UTC
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.

Reference:
https://www.postgresql.org/support/security/CVE-2024-4317/

Comment 1 Avinash Hanwate 2024-05-10 03:58:55 UTC
Created mingw-postgresql tracking bugs for this issue:

Affects: fedora-all [bug 2279936]


Created postgresql tracking bugs for this issue:

Affects: fedora-all [bug 2279937]


Created postgresql15 tracking bugs for this issue:

Affects: fedora-all [bug 2279938]


Created postgresql16 tracking bugs for this issue:

Affects: fedora-all [bug 2279939]


Created postgresql:14/postgresql tracking bugs for this issue:

Affects: fedora-all [bug 2279940]


Created postgresql:15/postgresql tracking bugs for this issue:

Affects: fedora-all [bug 2279941]

Comment 4 errata-xmlrpc 2024-08-28 11:39:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:5929 https://access.redhat.com/errata/RHSA-2024:5929

Comment 5 errata-xmlrpc 2024-08-28 12:04:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:5927 https://access.redhat.com/errata/RHSA-2024:5927

Comment 6 errata-xmlrpc 2024-08-29 08:50:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:6001 https://access.redhat.com/errata/RHSA-2024:6001

Comment 7 errata-xmlrpc 2024-08-29 10:53:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:6020 https://access.redhat.com/errata/RHSA-2024:6020

Comment 8 errata-xmlrpc 2024-09-03 02:19:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:6142 https://access.redhat.com/errata/RHSA-2024:6142