Vulnerability · Published May 9, 2024 · Assigned by PostgreSQL

CVE-2024-4317PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks

Low 3.1

In plain English

A low-severity missing authorization in PostgreSQL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.1Low
Exploit odds (30 days)0.7%top 45.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pg_repack1.4.8-1.module_el8.9.0+3706+885c732eALSA-2024:6001
AlmaLinux:8pg_repack1.4.8-1.module_el8.10.0+3798+606ebb9fALSA-2024:5927
AlmaLinux:9pg_repack1.4.8-1.module_el9.4.0+66+eb9878bcALSA-2024:5929
AlmaLinux:9pg_repack1.4.8-1.module_el9.3.0+52+21733919ALSA-2024:6020
AlmaLinux:8pgaudit16.0-1.module_el8.10.0+3798+606ebb9fALSA-2024:5927
AlmaLinux:8pgaudit1.7.0-1.module_el8.9.0+3706+885c732eALSA-2024:6001
AlmaLinux:9pgaudit1.7.0-1.module_el9.3.0+52+21733919ALSA-2024:6020
AlmaLinux:9pgaudit16.0-1.module_el9.4.0+66+eb9878bcALSA-2024:5929
AlmaLinux:8postgres-decoderbufs1.9.7-1.Final.module_el8.9.0+3706+885c732eALSA-2024:6001
AlmaLinux:8postgres-decoderbufs2.4.0-1.Final.module_el8.10.0+3798+606ebb9fALSA-2024:5927
AlmaLinux:9postgres-decoderbufs1.9.7-1.Final.module_el9.3.0+52+21733919ALSA-2024:6020
AlmaLinux:9postgres-decoderbufs2.4.0-1.Final.module_el9.4.0+66+eb9878bcALSA-2024:5929
AlmaLinux:8postgresql16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-contrib15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:8postgresql-contrib16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:9postgresql-contrib16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-contrib15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-docs15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:8postgresql-docs16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:9postgresql-docs15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:9postgresql-docs16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:8postgresql-plperl16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql-plperl15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql-plperl16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-plperl15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-plpython316.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql-plpython315.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql-plpython315.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:9postgresql-plpython316.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:8postgresql-pltcl16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql-pltcl15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql-pltcl15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:9postgresql-pltcl16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:8postgresql-private-devel15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:8postgresql-private-devel16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:9postgresql-private-devel16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-private-devel15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-private-libs15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:8postgresql-private-libs16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:9postgresql-private-libs16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-private-libs15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-server16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql-server15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql-server16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-server15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-server-devel16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql-server-devel15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql-server-devel16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-server-devel15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-static15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:8postgresql-static16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:9postgresql-static16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-static15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-test15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:8postgresql-test16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:9postgresql-test16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-test15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-test-rpm-macros16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql-test-rpm-macros15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql-test-rpm-macros16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-test-rpm-macros15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-upgrade16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql-upgrade15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql-upgrade16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-upgrade15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
AlmaLinux:8postgresql-upgrade-devel16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux:8postgresql-upgrade-devel15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux:9postgresql-upgrade-devel16.4-1.module_el9.4.0+109+624ac33aALSA-2024:5929
AlmaLinux:9postgresql-upgrade-devel15.8-1.module_el9.4.0+111+667b9e9eALSA-2024:6020
Debian:12postgresql-1515.7-0+deb12u1DEBIAN-CVE-2024-4317
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2024:6001
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2024:5927
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2024:6001
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2024:6001
Rocky Linux:8pgaudit0:1.7.0-1.module+el8.9.0+1525+fc91df60RLSA-2024:6001
Rocky Linux:8pgaudit0:16.0-1.module+el8.10.0+1622+bd25b19cRLSA-2024:5927
Rocky Linux:9pgaudit0:1.7.0-1.module+el9.5.0+30637+4391fccaRLSA-2024:6020
Rocky Linux:9pgaudit0:16.0-1.module+el9.5.0+30638+72f697e1RLSA-2024:5929
Rocky Linux:8postgres-decoderbufs0:2.4.0-1.Final.module+el8.10.0+1622+bd25b19cRLSA-2024:5927
Rocky Linux:8postgres-decoderbufs0:1.9.7-1.Final.module+el8.9.0+1525+fc91df60RLSA-2024:6001
Rocky Linux:9postgres-decoderbufs0:1.9.7-1.Final.module+el9.5.0+30637+4391fccaRLSA-2024:6020
Rocky Linux:9postgres-decoderbufs0:2.4.0-1.Final.module+el9.5.0+30638+72f697e1RLSA-2024:5929
Rocky Linux:8postgresql0:15.8-1.module+el8.10.0+1864+f5aa9248RLSA-2024:6001
Rocky Linux:8postgresql0:16.4-1.module+el8.10.0+1858+fcc46a79RLSA-2024:5927
Ubuntu:22.04:LTSpostgresql-1414.12-0ubuntu0.22.04.1UBUNTU-CVE-2024-4317
Ubuntu:22.04:LTSpostgresql-1414.12-0ubuntu0.22.04.1USN-6802-1
Ubuntu:24.04:LTSpostgresql-1616.3-0ubuntu0.24.04.1UBUNTU-CVE-2024-4317
Ubuntu:24.04:LTSpostgresql-1616.3-0ubuntu0.24.04.1USN-6802-1

Affected products (as reported)

VendorProductVersions
n/a PostgreSQL 16 – before 16.315 – before 15.714 – before 14.12

Weakness: CWE-862 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

References