Skip to main content
Network Thinking Solutions Logo

CVE-2024-4317

PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks

All CVEs
CVE-2024-4317Published 5/14/2024

PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks

Vendor advisory
CVSS4.3Medium

Overview

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.

Published
5/14/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
postgresql
postgresql
≥ 14.0, < 14.12

Verify advisory

Source
postgresql
postgresql
≥ 15.0, < 15.7

Verify advisory

Source
postgresql
postgresql
≥ 16.0, < 16.3

Verify advisory

Source
PostgreSQL
n/a
≥ 16, < 16.3

Verify advisory

Source
PostgreSQL
n/a
≥ 15, < 15.7

Verify advisory

Source
PostgreSQL
n/a
≥ 14, < 14.12

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 4.3. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.