Auth bypass in PostgreSQL
CVE-2024-4317
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.
Vulnerability class: Broken Access Control
EPSS: 0.007 (50.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 3.1 (Low). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N.
Affected products
- Postgresql
- N/a Postgresql — versions 16, 15, 14
Weakness classification (CWE)
Public proof-of-concept exploits
References
- f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 (Mitigation, Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2024-4317?
- CVE-2024-4317 is a low-severity vulnerability in PostgreSQL, classified under Missing Authorization. CVSS score: 3.1/10. Published 2024-05-14.
- How severe is CVE-2024-4317?
- Low severity. CVSS v3 base score is 3.1 out of 10.
- Is CVE-2024-4317 known to be exploited?
- 5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.