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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | pg_repack | 1.4.8-1.module_el8.9.0+3706+885c732e | ALSA-2024:6001 |
| AlmaLinux:8 | pg_repack | 1.4.8-1.module_el8.10.0+3798+606ebb9f | ALSA-2024:5927 |
| AlmaLinux:9 | pg_repack | 1.4.8-1.module_el9.4.0+66+eb9878bc | ALSA-2024:5929 |
| AlmaLinux:9 | pg_repack | 1.4.8-1.module_el9.3.0+52+21733919 | ALSA-2024:6020 |
| AlmaLinux:8 | pgaudit | 16.0-1.module_el8.10.0+3798+606ebb9f | ALSA-2024:5927 |
| AlmaLinux:8 | pgaudit | 1.7.0-1.module_el8.9.0+3706+885c732e | ALSA-2024:6001 |
| AlmaLinux:9 | pgaudit | 1.7.0-1.module_el9.3.0+52+21733919 | ALSA-2024:6020 |
| AlmaLinux:9 | pgaudit | 16.0-1.module_el9.4.0+66+eb9878bc | ALSA-2024:5929 |
| AlmaLinux:8 | postgres-decoderbufs | 1.9.7-1.Final.module_el8.9.0+3706+885c732e | ALSA-2024:6001 |
| AlmaLinux:8 | postgres-decoderbufs | 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f | ALSA-2024:5927 |
| AlmaLinux:9 | postgres-decoderbufs | 1.9.7-1.Final.module_el9.3.0+52+21733919 | ALSA-2024:6020 |
| AlmaLinux:9 | postgres-decoderbufs | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc | ALSA-2024:5929 |
| AlmaLinux:8 | postgresql | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-contrib | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:8 | postgresql-contrib | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:9 | postgresql-contrib | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-contrib | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-docs | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:8 | postgresql-docs | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:9 | postgresql-docs | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:9 | postgresql-docs | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:8 | postgresql-plperl | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql-plperl | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql-plperl | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-plperl | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-plpython3 | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql-plpython3 | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql-plpython3 | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:9 | postgresql-plpython3 | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:8 | postgresql-pltcl | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql-pltcl | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql-pltcl | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:9 | postgresql-pltcl | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:8 | postgresql-private-devel | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:8 | postgresql-private-devel | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:9 | postgresql-private-devel | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-private-devel | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-private-libs | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:8 | postgresql-private-libs | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:9 | postgresql-private-libs | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-private-libs | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-server | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql-server | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql-server | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-server | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-server-devel | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql-server-devel | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql-server-devel | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-server-devel | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-static | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:8 | postgresql-static | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:9 | postgresql-static | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-static | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-test | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:8 | postgresql-test | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:9 | postgresql-test | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-test | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-test-rpm-macros | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql-test-rpm-macros | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql-test-rpm-macros | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-test-rpm-macros | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-upgrade | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql-upgrade | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql-upgrade | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-upgrade | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| AlmaLinux:8 | postgresql-upgrade-devel | 16.4-1.module_el8.10.0+3884+a79fbae6 | ALSA-2024:5927 |
| AlmaLinux:8 | postgresql-upgrade-devel | 15.8-1.module_el8.10.0+3888+1aead837 | ALSA-2024:6001 |
| AlmaLinux:9 | postgresql-upgrade-devel | 16.4-1.module_el9.4.0+109+624ac33a | ALSA-2024:5929 |
| AlmaLinux:9 | postgresql-upgrade-devel | 15.8-1.module_el9.4.0+111+667b9e9e | ALSA-2024:6020 |
| Debian:12 | postgresql-15 | 15.7-0+deb12u1 | DEBIAN-CVE-2024-4317 |
| Rocky Linux:8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1858+fcc46a79 | RLSA-2024:6001 |
| Rocky Linux:8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1622+bd25b19c | RLSA-2024:5927 |
| Rocky Linux:8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1622+bd25b19c | RLSA-2024:6001 |
| Rocky Linux:8 | pg_repack | 0:1.4.8-1.module+el8.9.0+1525+fc91df60 | RLSA-2024:6001 |
| Rocky Linux:8 | pgaudit | 0:1.7.0-1.module+el8.9.0+1525+fc91df60 | RLSA-2024:6001 |
| Rocky Linux:8 | pgaudit | 0:16.0-1.module+el8.10.0+1622+bd25b19c | RLSA-2024:5927 |
| Rocky Linux:9 | pgaudit | 0:1.7.0-1.module+el9.5.0+30637+4391fcca | RLSA-2024:6020 |
| Rocky Linux:9 | pgaudit | 0:16.0-1.module+el9.5.0+30638+72f697e1 | RLSA-2024:5929 |
| Rocky Linux:8 | postgres-decoderbufs | 0:2.4.0-1.Final.module+el8.10.0+1622+bd25b19c | RLSA-2024:5927 |
| Rocky Linux:8 | postgres-decoderbufs | 0:1.9.7-1.Final.module+el8.9.0+1525+fc91df60 | RLSA-2024:6001 |
| Rocky Linux:9 | postgres-decoderbufs | 0:1.9.7-1.Final.module+el9.5.0+30637+4391fcca | RLSA-2024:6020 |
| Rocky Linux:9 | postgres-decoderbufs | 0:2.4.0-1.Final.module+el9.5.0+30638+72f697e1 | RLSA-2024:5929 |
| Rocky Linux:8 | postgresql | 0:15.8-1.module+el8.10.0+1864+f5aa9248 | RLSA-2024:6001 |
| Rocky Linux:8 | postgresql | 0:16.4-1.module+el8.10.0+1858+fcc46a79 | RLSA-2024:5927 |
| Ubuntu:22.04:LTS | postgresql-14 | 14.12-0ubuntu0.22.04.1 | UBUNTU-CVE-2024-4317 |
| Ubuntu:22.04:LTS | postgresql-14 | 14.12-0ubuntu0.22.04.1 | USN-6802-1 |
| Ubuntu:24.04:LTS | postgresql-16 | 16.3-0ubuntu0.24.04.1 | UBUNTU-CVE-2024-4317 |
| Ubuntu:24.04:LTS | postgresql-16 | 16.3-0ubuntu0.24.04.1 | USN-6802-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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