CVE-2024-4317 json
PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks
published 2024-05-09 2 y ago modified 2026-09-08 2 mo ago also BIT-postgresql-2024-4317 , EUVD-2024-43960 , JLSEC-2026-51
- cvss
- 3.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
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. Within major versions 14-16, minor versions before PostgreSQL 16.3, 15.7, and 14.12 are affected. Versions before PostgreSQL 14 are unaffected.
Patch / fix
- bitnami postgresql 14.12.0, 15.7.0, 16.3.0
- julia LibPQ_jll 16.8.0+0
- n/a PostgreSQL 14.12, 15.7, 16.3
- postgresql-15 Debian 12 15.7-0+deb12u1
debian advisories DEBIAN-CVE-2024-4317
- postgresql-14 Ubuntu 22.04 LTS 14.12-0ubuntu0.22.04.1
- postgresql-16 Ubuntu 24.04 LTS 16.3-0ubuntu0.24.04.1
ubuntu advisories UBUNTU-CVE-2024-4317
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pgaudit RHEL 8 1.7.0-1.module+el8.9.0+19797+c4ce5969
- pg_repack RHEL 8 1.4.8-1.module+el8.9.0+19797+c4ce5969
- postgresql RHEL 8 15.8-1.module+el8.10.0+22212+a51fe170
- postgresql-test RHEL 8 15.8-1.module+el8.10.0+22212+a51fe170
- postgresql-pltcl RHEL 8 15.8-1.module+el8.10.0+22212+a51fe170
- postgresql-plperl RHEL 8 15.8-1.module+el8.10.0+22212+a51fe170
- postgresql-server RHEL 8 15.8-1.module+el8.10.0+22212+a51fe170
- postgresql-contrib RHEL 8 15.8-1.module+el8.10.0+22212+a51fe170
red hat advisories RHSA-2024:6001RHSA-2024:6020RHSA-2024:6142RHSA-2024:5927RHSA-2024:5929
- postgresql16 SLE Module for Server Applications 15 SP6, SLE Module for Package Hub 15 SP6, SLE Module for Basesystem 15 SP6 +1 more 16.4-150600.16.5.1
- postgresql14 SLE Module for Package Hub 15 SP6, SLE Module for Legacy 15 SP6, openSUSE Leap 15.6 14.12-150600.16.3.1
- postgresql16 SLE Module for Server Applications 15 SP6, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 16.2-150600.16.2.1
- postgresql15 SLE Module for Legacy 15 SP6, openSUSE Leap 15.6 15.7-150600.16.3.1
- postgresql15 SLE Module for Server Applications 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 15.7-150200.5.27.1
- postgresql14 SLE Module for Package Hub 15 SP5, SLE Module for Legacy 15 SP5, openSUSE Leap 15.5 14.12-150200.5.44.1
- postgresql14 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 14.12-3.41.1
- postgresql15 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 15.7-3.25.1
suse advisories SUSE-SU-2024:3159-2SUSE-SU-2024:3159-1SUSE-SU-2024:2262-2SUSE-SU-2024:2262-3SUSE-SU-2024:2266-1SUSE-SU-2024:2262-1
- postgresql14 openSUSE Tumbleweed 14.12-1.1
- postgresql15 openSUSE Tumbleweed 15.7-1.1
- postgresql16 openSUSE Tumbleweed 16.3-1.1
opensuse advisories openSUSE-SU-2024:13946-1openSUSE-SU-2024:13947-1openSUSE-SU-2024:13950-1
- pgaudit AlmaLinux 8 1.7.0-1.module_el8.9.0+3706+885c732e
- pg_repack AlmaLinux 8 1.4.8-1.module_el8.9.0+3706+885c732e
- postgresql AlmaLinux 8 15.8-1.module_el8.10.0+3888+1aead837
- postgresql-test AlmaLinux 8 15.8-1.module_el8.10.0+3888+1aead837
- postgresql-pltcl AlmaLinux 8 15.8-1.module_el8.10.0+3888+1aead837
- postgresql-plperl AlmaLinux 8 15.8-1.module_el8.10.0+3888+1aead837
- postgresql-server AlmaLinux 8 15.8-1.module_el8.10.0+3888+1aead837
- postgresql-contrib AlmaLinux 8 15.8-1.module_el8.10.0+3888+1aead837
almalinux advisories ALSA-2024:6001ALSA-2024:6020ALSA-2024:5927ALSA-2024:5929
- pgaudit Rocky Linux 9 1.7.0-1.module+el9.5.0+30637+4391fcca
- postgres-decoderbufs Rocky Linux 9 1.9.7-1.Final.module+el9.5.0+30637+4391fcca
- pgaudit Rocky Linux 8 1.7.0-1.module+el8.9.0+1525+fc91df60
- pg_repack Rocky Linux 8 1.4.8-1.module+el8.10.0+1622+bd25b19c
- pg_repack Rocky Linux 8 1.4.8-1.module+el8.10.0+1858+fcc46a79
- pg_repack Rocky Linux 8 1.4.8-1.module+el8.9.0+1525+fc91df60
- postgresql Rocky Linux 8 15.8-1.module+el8.10.0+1864+f5aa9248
- postgres-decoderbufs Rocky Linux 8 1.9.7-1.Final.module+el8.9.0+1525+fc91df60
rocky linux advisories RLSA-2024:6020RLSA-2024:6001RLSA-2024:5929RLSA-2024:5927
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-4317 updated cvss 3.1
postgresql: PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks
-
Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969, pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pg_repack 1.4.8-1.module+el8.9.0+19797+c4ce5969, pg_repack 1.4.8-1.module+el8.10.0+20413+d8116364, postgresql 15.8-1.module+el8.10.0+22212+a51fe170, postgresql 16.4-1.module+el8.10.0+22209+060d7a0a, +20 morefixed: vendor fix RHSA-2024:5927
-
Red Hat Enterprise Linux AppStream (v. 9) pgaudit 16.0-1.module+el9.4.0+20427+07482b8c, pgaudit 1.7.0-1.module+el9.2.0+17405+aeb9ec60, pg_repack 1.4.8-1.module+el9.2.0+17405+aeb9ec60, pg_repack 1.4.8-1.module+el9.4.0+20427+07482b8c, postgresql 15.8-1.module+el9.4.0+22208+cd6b92ff, postgresql 16.4-1.module+el9.4.0+22207+8466e31f, +20 morefixed: vendor fix RHSA-2024:6020
-
Red Hat Enterprise Linux AppStream EUS (v.8.8) pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, postgresql 15.8-1.module+el8.8.0+22236+c63904f0, postgresql-test 15.8-1.module+el8.8.0+22236+c63904f0, postgresql-pltcl 15.8-1.module+el8.8.0+22236+c63904f0, postgresql-plperl 15.8-1.module+el8.8.0+22236+c63904f0, +7 morefixed: vendor fix RHSA-2024:6142
-
Red Hat Enterprise Linux 8 pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, +7 more Red Hat Enterprise Linux 9 postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, postgresql-contrib, +4 more Red Hat Enterprise Linux 10 postgresql16 Red Hat Software Collections rh-postgresql10-postgresql, rh-postgresql12-postgresql, rh-postgresql13-postgresql, rh-postgresql10-postgresql-libs, rh-postgresql10-postgresql-test, rh-postgresql12-postgresql-libs, +28 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.73% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | >=14.0.0, <14.12.0 >=15.0.0, <15.7.0 >=16.0.0, <16.3.0 |
14.12.0 15.7.0 16.3.0 |
| julia | LibPQ_jll | >=14.1.0+0, <16.8.0+0 |
16.8.0+0 |
Affected products
- n/a PostgreSQL
Classification
- Weakness
-
- CWE-862 Missing Authorization
- Technology feeds
References
-
postgresql.org
/support/security/CVE-2024-4317/
mitigation, vendor-advisory, advisory, web
-
security.netapp.com
/advisory/ntap-20250328-0001/
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-4317
web
Sources
- CVE List CVE-2024-4317
- NVD CVE-2024-4317
- OSV BIT-postgresql-2024-4317
- OSV JLSEC-2026-51
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.