CVE-2024-4317 in Postgresql
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 resu...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Postgresql | Postgresql | ≥ 14.0, < 14.12 ≥ 15.0, < 15.7 ≥ 16.0, < 16.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-4317 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-217775-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| Published | 2024-05-14 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-862: Missing Authorization
Software does not check whether an authenticated actor has permission for the requested operation.
Related attack patterns (CAPEC)
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-862
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-4317 involves a missing authorization vulnerability in PostgreSQL's built-in views pg_stats_ext and pg_stats_ext_exprs, allowing unprivileged users to access sensitive statistics.
An unprivileged database user can exploit this vulnerability to read most common values and other statistics from CREATE STATISTICS commands of other users, potentially revealing column values or function results they should not have access to.
Questions
What is CVE-2024-4317?
CVE-2024-4317 involves a missing authorization vulnerability in PostgreSQL's built-in views pg_stats_ext and pg_stats_ext_exprs, allowing unprivileged users to access sensitive statistics.
What is the CVSS score for CVE-2024-4317?
CVE-2024-4317 has CVSS 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N. EPSS: 0.6%.
Is CVE-2024-4317 actively exploited?
No confirmed active exploitation of CVE-2024-4317 as of 2026-09-25.
How do I remediate CVE-2024-4317?
Priority: MEDIUM. Advisory: https://www.postgresql.org/support/security/CVE-2024-4317/ PSIRT: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
What systems are affected by CVE-2024-4317?
CVE-2024-4317 affects Postgresql Postgresql.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Postgresql","product":"Postgresql","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.