cve.bz

CVE-2024-4317 postgresql postgresql: Missing Authorization

4.3 mediumEPSS 0.8%

Medium (4.3) in postgresql postgresql. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-05-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-862 Missing Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-4317 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-4317?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-4317?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-4317 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 14.0 before 14.12
postgresql:postgresqlfrom 15.0 before 15.7
postgresql:postgresqlfrom 16.0 before 16.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12postgresql-1515.7-0+deb12u1DEBIAN-CVE-2024-4317
Ubuntu22.04:LTSpostgresql-1414.12-0ubuntu0.22.04.1UBUNTU-CVE-2024-4317 USN-6802-1
Ubuntu24.04:LTSpostgresql-1616.3-0ubuntu0.24.04.1UBUNTU-CVE-2024-4317 USN-6802-1
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.10.0+20413+d8116364RHSA-2024:5927
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2024:6001
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.9.0+19797+c4ce5969RHSA-2024:6001
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:16.0-1.module+el8.10.0+20413+d8116364RHSA-2024:5927
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2024:6001
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:2.4.0-1.Final.module+el8.10.0+20413+d8116364RHSA-2024:5927
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:15.8-1.module+el8.10.0+22212+a51fe170RHSA-2024:6001
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:16.4-1.module+el8.10.0+22209+060d7a0aRHSA-2024:5927
Red Hatenterprise_linux:9::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el9.2.0+17405+aeb9ec60RHSA-2024:6020
Red Hatenterprise_linux:9::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el9.4.0+20427+07482b8cRHSA-2024:5929
Red Hatenterprise_linux:9::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el9.2.0+17405+aeb9ec60RHSA-2024:6020
Red Hatenterprise_linux:9::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:16.0-1.module+el9.4.0+20427+07482b8cRHSA-2024:5929
8 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Package Hub 15 SP5, Linux Enterprise Module for Server Applications 15 SP5postgresql1616.3-150200.5.13.1SUSE-SU-2024:1652-1
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Server Applications 15 SP5postgresql1515.7-150200.5.27.1SUSE-SU-2024:1777-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Server Applications 15 SP6postgresql1616.2-150600.16.2.1SUSE-SU-2024:2266-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Server Applications 15 SP6postgresql1616.4-150600.16.5.1SUSE-SU-2024:3159-1
SUSELinux Enterprise Module for Legacy 15 SP5, Linux Enterprise Module for Package Hub 15 SP5postgresql1414.12-150200.5.44.1SUSE-SU-2024:1768-1
SUSELinux Enterprise Module for Legacy 15 SP6postgresql1414.12-150600.16.3.1SUSE-SU-2024:2262-2 SUSE-SU-2024:2262-3
SUSELinux Enterprise Module for Legacy 15 SP6postgresql1515.7-150600.16.3.1SUSE-SU-2024:2261-1
SUSELinux Enterprise Module for Package Hub 15 SP6postgresql1414.12-150600.16.3.1SUSE-SU-2024:2262-1
SUSELinux Enterprise Module for Package Hub 15 SP6postgresql1616.4-150600.16.5.1SUSE-SU-2024:3159-2
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1414.12-3.41.1SUSE-SU-2024:1703-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1515.7-3.25.1SUSE-SU-2024:1653-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1616.3-3.13.1SUSE-SU-2024:1651-1
openSUSELeap 15.5postgresql1414.12-150200.5.44.1SUSE-SU-2024:1768-1
openSUSELeap 15.5postgresql1515.7-150200.5.27.1SUSE-SU-2024:1777-1
openSUSELeap 15.5postgresql16, postgresql16-mini16.3-150200.5.13.1SUSE-SU-2024:1652-1
openSUSELeap 15.6postgresql1414.12-150600.16.3.1SUSE-SU-2024:2262-1
openSUSELeap 15.6postgresql1515.7-150600.16.3.1SUSE-SU-2024:2261-1
openSUSELeap 15.6postgresql1616.2-150600.16.2.1SUSE-SU-2024:2266-1
openSUSELeap 15.6postgresql1616.4-150600.16.5.1SUSE-SU-2024:3159-1
openSUSETumbleweedpostgresql1414.12-1.1openSUSE-SU-2024:13946-1
openSUSETumbleweedpostgresql1515.7-1.1openSUSE-SU-2024:13947-1
openSUSETumbleweedpostgresql1616.3-1.1openSUSE-SU-2024:13950-1
AlmaLinux8pg_repack1.4.8-1.module_el8.10.0+3798+606ebb9fALSA-2024:5927
AlmaLinux8pg_repack1.4.8-1.module_el8.9.0+3706+885c732eALSA-2024:6001
AlmaLinux8pgaudit1.7.0-1.module_el8.9.0+3706+885c732eALSA-2024:6001
AlmaLinux8pgaudit16.0-1.module_el8.10.0+3798+606ebb9fALSA-2024:5927
AlmaLinux8postgres-decoderbufs1.9.7-1.Final.module_el8.9.0+3706+885c732eALSA-2024:6001
AlmaLinux8postgres-decoderbufs2.4.0-1.Final.module_el8.10.0+3798+606ebb9fALSA-2024:5927
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 12 more15.8-1.module_el8.10.0+3888+1aead837ALSA-2024:6001
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 12 more16.4-1.module_el8.10.0+3884+a79fbae6ALSA-2024:5927
AlmaLinux9pg_repack1.4.8-1.module_el9.3.0+52+21733919ALSA-2024:6020
AlmaLinux9pg_repack1.4.8-1.module_el9.4.0+66+eb9878bcALSA-2024:5929
AlmaLinux9pgaudit1.7.0-1.module_el9.3.0+52+21733919ALSA-2024:6020
AlmaLinux9pgaudit16.0-1.module_el9.4.0+66+eb9878bcALSA-2024:5929
4 more for AlmaLinux in the JSON.
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2024:5927 RLSA-2024:6001
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2024:6001
Rocky Linux8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2024:6001
Rocky Linux8pgaudit0:1.7.0-1.module+el8.9.0+1525+fc91df60RLSA-2024:6001
Rocky Linux8pgaudit0:16.0-1.module+el8.10.0+1622+bd25b19cRLSA-2024:5927
Rocky Linux8postgres-decoderbufs0:1.9.7-1.Final.module+el8.9.0+1525+fc91df60RLSA-2024:6001
Rocky Linux8postgres-decoderbufs0:2.4.0-1.Final.module+el8.10.0+1622+bd25b19cRLSA-2024:5927
Rocky Linux8postgresql0:15.8-1.module+el8.10.0+1864+f5aa9248RLSA-2024:6001
Rocky Linux8postgresql0:16.4-1.module+el8.10.0+1858+fcc46a79RLSA-2024:5927
Rocky Linux9pgaudit0:1.7.0-1.module+el9.5.0+30637+4391fccaRLSA-2024:6020
Rocky Linux9pgaudit0:16.0-1.module+el9.5.0+30638+72f697e1RLSA-2024:5929
Rocky Linux9postgres-decoderbufs0:1.9.7-1.Final.module+el9.5.0+30637+4391fccaRLSA-2024:6020
1 more for Rocky Linux in the JSON.
Azure Linux3postgresql16.3-1AZL-40654
Alpaquita23postgresql1515.7-r0BELL-CVE-2024-4317

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

PostgreSQL versions before 14 are not affected by this vulnerability. Additionally, this flaw was rated with a low severity as an attacker only has access to some restricted information, specifically information from CREATE STATISTICS commands.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8postgresql:16-8100020240814094432.489197e6Fixed 2024-08-28RHSA-2024:5927
Red Hat Enterprise Linux 8postgresql:15-8100020240814101911.489197e6Fixed 2024-08-29RHSA-2024:6001
Red Hat Enterprise Linux 8.8 Extended Update Supportpostgresql:15-8080020240826125709.63b34585Fixed 2024-09-03RHSA-2024:6142
Red Hat Enterprise Linux 9postgresql:16-9040020240812093225.rhel9Fixed 2024-08-28RHSA-2024:5929
Red Hat Enterprise Linux 9postgresql:15-9040020240812115436.rhel9Fixed 2024-08-29RHSA-2024:6020
Red Hat Enterprise Linux 10postgresql16Not affected
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlOut of support scope
Red Hat Enterprise Linux 8postgresql:10/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:12/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:13/postgresqlNot affected
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Software Collectionsrh-postgresql10-postgresqlNot affected
Red Hat Software Collectionsrh-postgresql12-postgresqlNot affected
Red Hat Software Collectionsrh-postgresql13-postgresqlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-4317.

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON