# CVE-2024-4317: PostgreSQL pg_stats_ext and pg_stats_ext_exprs lack authorization checks

- Severity: Low 3.1 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2024-05-09T13:00:01.285Z
- Modified: 2026-09-08T08:47:47.479Z
- Also known as: BIT-POSTGRESQL-2024-4317
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 16 before 16.3; from 15 before 15.7; from 14 before 14.12
- postgresql postgresql: from 14.0 before 14.12; from 15.0 before 15.7; from 16.0 before 16.3
- postgresql (Bitnami): from 14.0.0 before 14.12.0; from 15.0.0 before 15.7.0; from 16.0.0 before 16.3.0

## Every score

- PostgreSQL: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: 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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://www.postgresql.org/support/security/CVE-2024-4317/> (advisory, mitigation, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20250328-0001/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-4317> (web)

## Sources

- CVE List: [CVE-2024-4317](https://www.cve.org/CVERecord?id=CVE-2024-4317), CVE Terms of Use, modified 2025-03-28
- NVD: [CVE-2024-4317](https://nvd.nist.gov/vuln/detail/CVE-2024-4317), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2024-4317](https://osv.dev/vulnerability/BIT-POSTGRESQL-2024-4317), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-4317 · Whole record: https://cve.day/CVE-2024-4317.json · Rebuilt by cve.day 2026-11-25T22:58:40.226Z
